记录在误删/var 文件夹之后,系统启动不能进入桌面系统的过程
1、首先进入命令行,
使用有线连接互联网
apt-get update
apt-get -f install
apt-get install ubuntu-desktop 遇到问题,
问题:
我无法安装任何软件包,因为出现这里错误:
installArchives() failed: E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory dpkg: regarding.. ./libgcc1_1%3a4.7.2-2ubuntu1_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.7.2-2ubuntu1_amd64.deb (--unpack): pre-dependency problem - not installing libgcc1:amd64 Errors were encountered while processing: /var/cache/apt/archives/libgcc1_1%3a4.7.2-2ubuntu1_amd64.deb Error in function: dpkg: dependency problems prevent configuration of libc6:amd64: libc6:amd64 depends on libgcc1; however: Package libgcc1 is not installed. libc6:amd64 depends on tzdata; however: Package tzdata is not installed. dpkg: error processing libc6:amd64 (--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:amd64 is not configured yet. dpkg: error processing multiarch-support (--configure): dependency problems - leaving unconfigured
回答 1:
这里是这个问题的解决方案,超级容易
你必须直接使用dpkg来解决这个问题。
"又来了"
软件包 multiarch-support is unpacked, but has never been configured
这意味着包不久将配置,但还没有配置。
什么时候状态 unpacked
还没有安装,因此包 libgcc1
无法安装,因为依赖项还没有安装,并且无法安装在 multiarch-support
之前。
我们必须强制multiarch支持安装的状态来完成这个操作。
nano/var/lib/dpkg/status
查找以 Package:
开头的行,如下所示:
Package: multiarch-support Status: install ok unpacked
你必须将 unpacked
更改为 installed
现在尝试:
sudo dpkg --configure --pending
sudo apt-get install --reinstall multiarch-support libgcc1 debconf