安装软件包时出现的问题 - Ubuntu 16.04 TLS

安装软件包时出现的问题 - Ubuntu 16.04 TLS

我是 Ubuntu 新手,在 16.04 TLS 上安装某些软件包时遇到问题。第一个是 pip。当我运行 时sudo apt-get install python-pip,我得到了:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libpcl1.7 : Depends: libpcl-people1.7 but it is not going to be installed
 python-pip : Depends: python-pip-whl (= 8.1.1-2ubuntu0.4) but it is not going to be installed
          Recommends: python-all-dev (>= 2.6) but it is not going to be installed
          Recommends: python-wheel but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我尝试使用带有标志的命令-f,但仍然没有帮助。然后我尝试使用安装 libpcl-people1.7 sudo apt-get install libpcl-people1.7,但我得到了更多错误:

After this operation, 74.8 kB of additional disk space will be used.
E: Read error - read (5: Input/output error)
E: Prior errors apply to /var/cache/apt/archives/libpcl-people1.7_1.7.2-14build1_amd64.deb
debconf: apt-extracttemplates failed: Interrupted system call
(Reading database ... 283158 files and directories currently installed.)
Preparing to unpack .../libpcl-people1.7_1.7.2-14build1_amd64.deb ...
Unpacking libpcl-people1.7:amd64 (1.7.2-14build1) ...
dpkg-deb (subprocess): cannot copy archive member from '/var/cache/apt/archives/libpcl-people1.7_1.7.2-14build1_amd64.deb' to decompressor pipe: failed to read (Input/output error)
dpkg-deb (subprocess): decompressing archive member: lzma error: unexpected end of input
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libpcl-people1.7_1.7.2-14build1_amd64.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
No apport report written because the error message indicates an issue on the local system
                                                                                     Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpcl-people1.7_1.7.2-14build1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我在运行这些命令之前更新了系统。对我来说,这些错误看起来很奇怪。这些错误可能是什么原因造成的?任何帮助都值得感激。谢谢。

相关内容