• 记录在误删/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
    
    
  • 相关阅读:
    关于跨域名访问,反向代理系列话题集锦
    中国B2C电子商务最新发展状况调查分析(转)
    顶部导航条(Top Navigation Bar)_Yahoo_Pattern(翻译)
    google,百度,yahoo,msn,ASK网址登录和网站地图提交地址
    如何安装PE到硬盘(包括移动硬盘)分区
    ASP.NET SQL 注入免费解决方案
    O2O循环圈
    B2C暴利行业之保健品行业
    在SQLserver2005中如何对运行慢的查询进行分析?
    互联网产品设计之需求管理
  • 原文地址:https://www.cnblogs.com/eastgeneral/p/12031219.html
Copyright © 2020-2023  润新知