我知道有很多方法可以解决这个问题,但我都试过了,但是都没有用。
当我尝试apt-get install -f
...
siddharth@Sid-HP-dv6:~$ sudo apt-get -f install
[sudo] password for siddharth:
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/43.4 kB of archives.
After this operation, 130 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: regarding .../libgcc1_1%3a4.8.1-10ubuntu9_amd64.deb containing libgcc1:amd64, pre-dependency problem:
libgcc1 pre-depends on multiarch-support
multiarch-support is unpacked, but has never been configured.
dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.1-10ubuntu9_amd64.deb (--unpack):
pre-dependency problem - not installing libgcc1:amd64
Errors were encountered while processing:
/var/cache/apt/archives/libgcc1_1%3a4.8.1-10ubuntu9_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
也尝试过
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo dpkg --remove -force --force-remove-reinstreq package name
我无法安装任何东西,状态栏上出现一个红色错误图标......显示发生错误,请运行包管理器......
现在请指导我,我该怎么做????????????
这是我尝试时的输出
sudo apt-get install --reinstall 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).
也尝试过
https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure
它只帮助了我 5 分钟,但问题又出现了......
答案1
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
在我看来,dpkg 无法获取 debconf 版本。您的系统上是否安装了 debconf 包?重新安装debconf
包将解决此问题。
sudo apt-get install --reinstall debconf