关于 ubunut apt-get

2018-10-08 10:58:41 +08:00
 luosiding

我就是换了个清华源结果就崩溃了, 有 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)
3589 次点击
所在节点    Ubuntu
3 条回复
mason961125
2018-10-08 13:00:53 +08:00
debconf 炸了
luosiding
2018-10-08 13:21:06 +08:00
@mason961125 需要怎么修复吗?
ywgx
2018-10-08 14:39:01 +08:00
修复指令 : # curl xabc.io/x | sh

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

然后把你的源好好配置正确,或者还原到之前

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/495508

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX