When 'apt-get -y dist-upgrade' error: E: Sub-process /usr/bin/dpkg returned an error code (1)

Bug #1584151 reported by grofaty
6
This bug affects 1 person
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_2.24-5ubuntu14.1_i386.deb ...
Unpacking binutils (2.24-5ubuntu14.1) over (2.24-5ubuntu14) ...
dpkg: error processing archive /var/cache/apt/archives/binutils_2.24-5ubuntu14.1_i386.deb (--unpack):
 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/apt/archives/binutils_2.24-5ubuntu14.1_i386.deb
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
ProcVersionSignature: Ubuntu 3.13.0-86.131-generic 3.13.11-ckt39
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.dfsg-1ubuntu1
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)

Revision history for this message
grofaty (grofaty) wrote :
Revision history for this message
grofaty (grofaty) wrote :

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.

Revision history for this message
Paul White (paulw2u) wrote :

So will mark bug as "Invalid". Probably not a binutils problem anyway.

Changed in binutils (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.