最大的原因:软件源不合适
比如安装xinetd之类的安装失败出现debconf: apt-extracttemplates failed: No such file or directory等等报错,找了很久找到一个源是12.04可以用的。
完整报错:
apt-get install xinetd
The following NEW packages will be installed:
xinetd
0 upgraded, 1 newly installed, 0 to remove and 1170 not upgraded.
Need to get 0 B/108 kB of archives.
After this operation, 310 kB of additional disk space will be used.
E: /var/cache/apt/archives/xinetd_1%3a2.3.15.3-1_amd64.deb not a valid DEB package.
E: Prior errors apply to /var/cache/apt/archives/xinetd_1%3a2.3.15.3-1_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: archive '/var/cache/apt/archives/xinetd_1%3a2.3.15.3-1_amd64.deb' contains not understood data member control.tar.xz, giving up
dpkg: error processing /var/cache/apt/archives/xinetd_1%3a2.3.15.3-1_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were

文章描述了在尝试安装xinetd时遇到的错误,如debconf:apt-extracttemplatesfailed和dpkg-deb错误,原因是使用的软件源不适用。解决方法是备份并修改/etc/apt/sources.list文件,将内容替换为阿里云的Ubuntutrusty仓库镜像地址,然后更新软件列表以修复安装问题。
最低0.47元/天 解锁文章
8154

被折叠的 条评论
为什么被折叠?



