E: 无法获取 debconf 版本。是否安装了 debconf?
E: Cannot get debconf version. Is debconf installed?
我是 运行 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
时,它显示:
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 我遇到了同样的问题;
这是什么意思?
意味着您/Ubuntu 搞砸了 debian 配置;它更像是一个地方/数据库,其中包含系统中安装了哪些包/系统工具或软件的所有信息
需要做什么?
只需按照以下步骤操作,您应该没问题
第 1 步:检查依赖 PPA 是否按照下面所述进行检查 link
https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
第 2 步:使用下面的 link 修复损坏的包系统:
https://askubuntu.com/questions/322084/package-system-is-broken
第 3 步:以 root
身份尝试 运行 这些命令
apt-get 更新
apt-get clean
apt-get 安装-fy
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
apt-get 安装-fy
如果没有任何效果,您可能需要执行备份并重新安装 Ubuntu
或
按照下面的说明破解它link
第 4 步:修复安装包时出现的问题
https://askubuntu.com/questions/220649/problem-installing-packages/485293#485293
第 5 步:清理、更新和 Dist 升级
易于获取更新
apt-get clean
apt-get 安装-fy
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
apt-get 安装-fy
apt-get dist-upgrade
如果终端提示 Y / N 等问题...始终选择以大写突出显示的默认选项;最有可能是 N。直到并且除非你真的确定你在做什么
apt-get dist-upgrade 会将您的 OS 升级到下一个发行版本
@kennedy 更新旧的 post,如果您是一个完全的新手并且只想完成它,请继续执行以下命令
dpkg-reconfigure debconf
最好的选择是,选择非交互,然后在下一个屏幕上选择关键
完成后,
for pkg in $(dpkg-query --show | awk '{print }'); do echo ; echo "--> $pkg" ; echo ; dpkg-reconfigure --frontend=noninteractive --priority=critical $pkg < /dev/null ; done
我是 运行 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
时,它显示:
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 我遇到了同样的问题;
这是什么意思?
意味着您/Ubuntu 搞砸了 debian 配置;它更像是一个地方/数据库,其中包含系统中安装了哪些包/系统工具或软件的所有信息
需要做什么?
只需按照以下步骤操作,您应该没问题
第 1 步:检查依赖 PPA 是否按照下面所述进行检查 link https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa
第 2 步:使用下面的 link 修复损坏的包系统: https://askubuntu.com/questions/322084/package-system-is-broken
第 3 步:以 root
身份尝试 运行 这些命令apt-get 更新
apt-get clean
apt-get 安装-fy
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
apt-get 安装-fy
如果没有任何效果,您可能需要执行备份并重新安装 Ubuntu
或
按照下面的说明破解它link
第 4 步:修复安装包时出现的问题 https://askubuntu.com/questions/220649/problem-installing-packages/485293#485293
第 5 步:清理、更新和 Dist 升级 易于获取更新
apt-get clean
apt-get 安装-fy
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
apt-get 安装-fy
apt-get dist-upgrade
如果终端提示 Y / N 等问题...始终选择以大写突出显示的默认选项;最有可能是 N。直到并且除非你真的确定你在做什么
apt-get dist-upgrade 会将您的 OS 升级到下一个发行版本
@kennedy 更新旧的 post,如果您是一个完全的新手并且只想完成它,请继续执行以下命令
dpkg-reconfigure debconf
最好的选择是,选择非交互,然后在下一个屏幕上选择关键
完成后,
for pkg in $(dpkg-query --show | awk '{print }'); do echo ; echo "--> $pkg" ; echo ; dpkg-reconfigure --frontend=noninteractive --priority=critical $pkg < /dev/null ; done