Get:1 http://cn.archive.ubuntu.com/ubuntu/ bionic-updates/main libcom-err2 amd64 1.44.1-1ubuntu1.3 [8,848 B]
Get:2 http://cn.archive.ubuntu.com/ubuntu/ bionic-updates/main libcomerr2 amd64 1.44.1-1ubuntu1.3 [2,708 B]
Get:3 http://cn.archive.ubuntu.com/ubuntu/ bionic-updates/main libtirpc1 amd64 0.2.5-1.2ubuntu0.1 [75.7 kB]
Get:4 http://cn.archive.ubuntu.com/ubuntu/ bionic-updates/main libc6 amd64 2.27-3ubuntu1.4 [2,832 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu/ bionic-updates/main libc-bin amd64 2.27-3ubuntu1.4 [643 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu/ bionic-updates/main locales all 2.27-3ubuntu1.4 [3,611 kB]
Fetched 7,173 kB in 55s (130 kB/s)
Preconfiguring packages ...
dpkg-deb: error: archive '/var/cache/apt/archives/libcomerr2_1.44.1-1ubuntu1.3_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/libcomerr2_1.44.1-1ubuntu1.3_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: archive '/var/cache/apt/archives/libcom-err2_1.44.1-1ubuntu1.3_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/libcom-err2_1.44.1-1ubuntu1.3_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: archive '/var/cache/apt/archives/libtirpc1_0.2.5-1.2ubuntu0.1_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/libtirpc1_0.2.5-1.2ubuntu0.1_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: archive '/var/cache/apt/archives/libc-bin_2.27-3ubuntu1.4_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/libc-bin_2.27-3ubuntu1.4_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: archive '/var/cache/apt/archives/locales_2.27-3ubuntu1.4_all.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/locales_2.27-3ubuntu1.4_all.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: error: archive '/var/cache/apt/archives/libc6_2.27-3ubuntu1.4_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.4_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libcomerr2_1.44.1-1ubuntu1.3_amd64.deb
/var/cache/apt/archives/libcom-err2_1.44.1-1ubuntu1.3_amd64.deb
/var/cache/apt/archives/libtirpc1_0.2.5-1.2ubuntu0.1_amd64.deb
/var/cache/apt/archives/libc-bin_2.27-3ubuntu1.4_amd64.deb
/var/cache/apt/archives/locales_2.27-3ubuntu1.4_all.deb
/var/cache/apt/archives/libc6_2.27-3ubuntu1.4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@center1:/etc/apt# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 470 not upgraded
因为没有提供系统版本和包管理器版本,我猜可能是以下问题:
dpkg无法解析tar.xz格式的control.tar.xz文件。
这主要是deb包打包的一个问题,一般使用xz压缩data部分,用gzip打control部分。
这是dpkg工具的bug,只在旧版的dpkg会出现这个问题。在
dpkg_1.17.5ubuntu5.8
以及之后的版本都不会出现这个问题,dpkg_1.17.5ubuntu5.8
这个版本也是ubuntu14.04自带源内的版本。所以你把包管理器升级一下,应该就能安装你要安装的软件包了。
可是我不会升级怎么办,啥......那也一并贴给你吧