E:无法获取debconf版本.安装了debconf吗? [英] E: Cannot get debconf version. Is debconf installed?
问题描述
我在带有ARMv8架构的QEMU上运行Debian.
I was run Debian on QEMU with ARMv8 arch.
root@debian:/home/kennedy# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libgcc1
The following NEW packages will be installed:
libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/31.3 kB of archives.
After this operation, 114 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: dependency problems prevent configuration of libc6:arm64:
libc6:arm64 depends on libgcc1; however:
Package libgcc1 is not installed.
dpkg: error processing package libc6:arm64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of multiarch-support:
multiarch-support depends on libc6 (>= 2.3.6-2); however:
Package libc6:arm64 is not configured yet.
dpkg: error processing package multiarch-support (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libc6:arm64
multiarch-support
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试了apt-get update
没问题.
root@debian:/home/kennedy# apt-get update
Hit http://ftp.cn.debian.org jessie InRelease
Hit http://ftp.cn.debian.org jessie-updates InRelease
Hit http://ftp.cn.debian.org jessie/main Sources
Hit http://ftp.cn.debian.org jessie/main arm64 Packages
Hit http://ftp.cn.debian.org jessie/main Translation-en
Hit http://ftp.cn.debian.org jessie-updates/main Sources
Get:1 http://ftp.cn.debian.org jessie-updates/main arm64 Packages/DiffIndex [505 B]
Get:2 http://ftp.cn.debian.org jessie-updates/main Translation-en/DiffIndex [229 B]
Hit http://security.debian.org jessie/updates InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/main arm64 Packages
Hit http://security.debian.org jessie/updates/main Translation-en
Fetched 734 B in 9s (80 B/s)
Reading package lists... Done
和/var/backups
为空.
root@debian:/home/kennedy# uname -a
Linux debian 3.16.0-4-arm64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) aarch64 GNU/Linux
当我运行apt-get install debconf
时,它会显示给我:
When I run apt-get install debconf
,it show me:
root@debian:/home/kennedy# apt-get install debconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
debconf : PreDepends: perl-base (>= 5.6.1-4) but it is not going to be installed
Recommends: apt-utils (>= 0.5.1) but it is not going to be installed
Recommends: debconf-i18n but it is not going to be installed
libc6 : Depends: libgcc1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
推荐答案
@kennedy我遇到了同样的问题;
@kennedy I had the same problem;
意味着您/Ubuntu已经搞砸了debian的配置;它更像一个地方/数据库,其中包含有关系统中通常安装了哪些软件包/系统工具或软件的所有信息
Means you / Ubuntu have messed up with the debian configuration; it's more like a place / database which has all information of what packages / system tools or software in general are installed in the system
只需执行以下步骤,就可以了
Just follow the below steps and you should be fine
第1步:检查是否按照以下链接中所述检查了从属PPA https://askubuntu.com/questions/140246/添加ppa后如何解决未满足的依赖性
Step 1: Check if the dependent PPA are checked as mentioned in below link https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
第2步:使用下面的链接修复损坏的包装系统: https://askubuntu.com/questions/322084/package-system-is-broken
Step 2: Fix your broken package system with the link below: https://askubuntu.com/questions/322084/package-system-is-broken
第3步:尝试以root用户身份运行这些命令
Step 3: Try running these commands as root
获取更新
易于清洁
apt-get install -fy
apt-get install -fy
dpkg -i/var/cache/apt/archives/*.deb
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
dpkg --configure -a
apt-get install -fy
apt-get install -fy
第4步:修复安装软件包时出现的问题 https://askubuntu.com/questions/220649/problem-installing-packages/485293#485293
Step 4: Fix the issues which occur while installing packages https://askubuntu.com/questions/220649/problem-installing-packages/485293#485293
第5步:清理,更新和远程升级 apt-get更新
Step 5: Clean, Update and Dist upgrade apt-get update
易于清洁
apt-get install -fy
apt-get install -fy
dpkg -i/var/cache/apt/archives/*.deb
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
dpkg --configure -a
apt-get install -fy
apt-get install -fy
apt-get dist-upgrade
apt-get dist-upgrade
如果终端提示类似Y/N等问题,请始终选择大写字母突出显示的默认选项;除非您真的确定自己在做什么,否则直到可能为止.
If terminal prompts with questions like Y / N etc... always opt for the default option highlighted in caps; most probably it would be N. Until and unless you are really sure of what you are doing
apt-get dist-upgrade会将您的操作系统升级到下一个发行版
apt-get dist-upgrade will upgrade your OS to the next release version
这篇关于E:无法获取debconf版本.安装了debconf吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!