在 ubuntu 中安装和删除软件包的问题

在 ubuntu 中安装和删除软件包的问题

这是我人生中第一次运行 ubuntu。我可以轻松更新软件包。但我无法删除或安装软件包/软件(任何使用sudo apt-get 安装或删除)。输入安装/删除命令后的输出如下:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  blt idle-python3.5 python3-tk tk8.6-blt2.5
Suggested packages:
  blt-demo tix python3-tk-dbg
The following NEW packages will be installed:
  blt idle-python3.5 idle3 python3-tk tk8.6-blt2.5
0 upgraded, 5 newly installed, 0 to remove and 345 not upgraded.
Need to get 647 kB of archives.
After this operation, 2,345 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-3 [574 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 blt amd64 2.5.3+dfsg-3 [4,852 B]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 python3-tk amd64 3.5.1-1 [25.1 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 idle-python3.5 all 3.5.2-2ubuntu0~16.04.1 [40.5 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 idle3 all 3.5.1-3 [2,800 B]
Fetched 647 kB in 5s (121 kB/s)  
Selecting previously unselected package tk8.6-blt2.5.
dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'anacron': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)

以下是我已经尝试过但没有成功的解决方案。

如何修复 dpkg 错误[2]?

这个线程讲述了编辑“状态”部分,其中提到了“anacron”,但只有一行提到了这个包。

以下是该行:

Recommends: apport-gtk (>= 2.8-0ubuntu3), python3-aptdaemon.gtk3widgets | synaptic (>= 0.75.12), software-properties-gtk, anacron, python3-aptdaemon

此后另一个包启动了。

另外,我尝试过这个线程但没有成功: 我该如何修复 E:子进程 /usr/bin/dpkg 返回错误代码 (2)?

希望我能在这里找到一些帮助。

谢谢,

相关内容