I am running ubuntu for the first time in my life. I am able to update the packages easily. But I can't remove or install packages/software(anything using sudo apt-get install or remove). Here is the output on entering an install/remove command:
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)
And here are the solutions I have already tried and there is no success.
This thread is telling about editing 'status' section, where the 'anacron' is mentioned, but there is only 1 line that mentions this package.
Here is that line:
Recommends: apport-gtk (>= 2.8-0ubuntu3), python3-aptdaemon.gtk3widgets | synaptic (>= 0.75.12), software-properties-gtk, anacron, python3-aptdaemon
After that another package is started.
Also, I have tried this thread but no success: How can I fix E: Sub-process /usr/bin/dpkg returned an error code (2)?
Hope, I will be able to find some help here.
Thanks,
sudo apt install vlc
that package is available and will install. YOu will also be able to remove that package usingsudo apt remove vlc
. If you try to install something that isn't available, or is broken because of something you have done it's show you the appropriate errors. – L. D. James Feb 16 '17 at 10:00sudo apt install vlc
? – L. D. James Feb 16 '17 at 16:39