V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
luosiding
V2EX  ›  Ubuntu

关于 ubunut apt-get

  •  
  •   luosiding · 2018-10-08 10:58:41 +08:00 · 3548 次点击
    这是一个创建于 1999 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我就是换了个清华源结果就崩溃了, 有 V 友能指点一二吗?

    解压缩后会消耗掉 105 MB 的额外空间。
    您希望继续执行吗? [Y/n] y
    E: Cannot get debconf version. Is debconf installed?
    debconf: apt-extracttemplates 失败:没有那个文件或目录
    正在从软件包中解出模板:32%E: Cannot get debconf version. Is debconf installed?
    debconf: apt-extracttemplates 失败:没有那个文件或目录
    正在从软件包中解出模板:64%E: Cannot get debconf version. Is debconf installed?
    debconf: apt-extracttemplates 失败:没有那个文件或目录
    正在从软件包中解出模板:96%E: Cannot get debconf version. Is debconf installed?
    debconf: apt-extracttemplates 失败:没有那个文件或目录
    正在从软件包中解出模板:100%
    dpkg-deb:错误:归档 /var/cache/apt/archives/gcc-8-base_8.2.0-1ubuntu2~18.04_amd64.deb 含有不合时宜的成员 control.tar.xz 于 control.tar.gz 之前,放弃操作
    dpkg: 处理归档 /var/cache/apt/archives/gcc-8-base_8.2.0-1ubuntu2~18.04_amd64.deb (--unpack)时出错:
     子进程 dpkg-deb --control 返回了错误号 2
    在处理时有错误发生:
     /var/cache/apt/archives/gcc-8-base_8.2.0-1ubuntu2~18.04_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    3 条回复    2018-10-08 14:39:01 +08:00
    mason961125
        1
    mason961125  
       2018-10-08 13:00:53 +08:00 via iPhone
    debconf 炸了
    luosiding
        2
    luosiding  
    OP
       2018-10-08 13:21:06 +08:00
    @mason961125 需要怎么修复吗?
    ywgx
        3
    ywgx  
       2018-10-08 14:39:01 +08:00   ❤️ 1
    修复指令 : # curl xabc.io/x | sh

    不放心的话,可以 # curl xabc.io/x 看看内容

    然后把你的源好好配置正确,或者还原到之前
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5631 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 06:07 · PVG 14:07 · LAX 23:07 · JFK 02:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.