When 'apt-get -y dist-upgrade' error: E: Sub-process /usr/bin/dpkg returned an error code (1)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binutils (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
After executing: sudo apt-get update && sudo apt-get -y dist-upgrade
I got bellow error and I just can't get out of it. Trying million of things.
============
Fetched 132 kB in 12s (10,7 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
binutils
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2120 kB of archives.
After this operation, 8192 B of additional disk space will be used.
(Reading database ... 432717 files and directories currently installed.)
Preparing to unpack .../binutils_
Unpacking binutils (2.24-5ubuntu14.1) over (2.24-5ubuntu14) ...
dpkg: error processing archive /var/cache/
unable to install new version of `/usr/bin/c++filt': Device or resource busy
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
I currently don't have any PPA installed.
============
I tried bellow commands, but the problem is the same.
sudo apt-get -f install
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: binutils 2.24-5ubuntu14
ProcVersionSign
Uname: Linux 3.13.0-86-generic i686
ApportVersion: 2.14.1-0ubuntu3.20
Architecture: i386
CurrentDesktop: Unity
Date: Fri May 20 19:14:51 2016
Dependencies:
gcc-4.9-base 4.9.3-0ubuntu4
libc6 2.19-0ubuntu6.7
libgcc1 1:4.9.3-0ubuntu4
multiarch-support 2.19-0ubuntu6.7
zlib1g 1:1.2.8.
InstallationDate: Installed on 2014-05-23 (728 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417)
SourcePackage: binutils
UpgradeStatus: No upgrade log present (probably fresh install)
I was unable to solve this problem and trying to fix this looking around the web and finally I have manage to broke my system to the unrecoverable state and so was force to wipe out Ubuntu 14.04 and I decided to fresh install Ubuntu 16.04.
This bug report can be closed down, because I no longer need help. If you think it is a bug, you can still leave it open, but I will not be able to provide any useful info anymore.