修复已提取但未配置的包阻止程序

修复已提取但未配置的包阻止程序

执行 apt-get dist-upgrade 时意外断电后出现问题。

当我现在运行命令(以 root 身份)apt-get dist-upgrade并得到以下输出:

Reading package lists ... Done
Building dependency tree.
Status information is read .... Done
Try 'apt-get -f install' to correct this.
The following packages have unmet dependencies:
libc6: Depends: but is not installed libgcc1
E: Unmet dependencies. Try to use -f.       

然后我跑apt-get -f 安装并得到:

 Reading package lists ... Done
 Building dependency tree.
 Status information is read .... 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 of archives still 47.9 kB.
 After this operation, 156 kB disk space will be used.
 Would you like to continue? [Y / n] y
 E: Can not get debconf version. Is debconf installed?
 debconf: apt-extracttemplates failed: File or directory not found
 dpkg: pre-dependency problem concerning ... / libgcc1_1% 3a4.9.1-0ubuntu1_i386.deb which libgcc1: i386 contains:
  libgcc1 depends (in advance) of multiarch-support from
   multiarch-support is unpacked, but has never been configured.

 dpkg: error processing the archive /var/cache/apt/archives/libgcc1_1%3a4.9.1-0ubuntu1_i386.deb (--unpack):
  Pre-dependency problem - libgcc1: i386 is not installed
 Errors were encountered while processing:
  /var/cache/apt/archives/libgcc1_1%3a4.9.1-0ubuntu1_i386.deb
 E: Sub-process / usr / bin / dpkg returned an error code (1)

当我跑步时dpkg-重新配置-f libgcc1我得到(还有其他的dpkg-重新配置s 无济于事):

debconf : unable to initialize surface : libgcc1
debconf : ( Can not locate Debconf/FrontEnd/Libgcc1.pm in INC ( You may need to install the Debconf :: Frontend :: libgcc1 module) ( INC contains: /etc/perl/usr/local/ lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl.) at (eval 34)line 2.)
debconf : fall back to the surface : nonInteractive 
/usr/sbin/dpkg -reconfigure : please choose a package that you want to reconfigure

我现在应该尝试什么来解决这个包的问题?已提取但未配置? 当前状态下存在循环依赖libgcc1多架构支持

如果您能帮助我,我将非常高兴,据我所知,没有任何方法可以帮助解决软件包问题。

答案1

这个循环依赖是无法解决的,只能重装操作系统才能解决这个问题。

相关内容