Package missing /lib/x86_64-linux-gnu/libgcc_s.so.1, breaks apt-get etc.

Bug #1280183 reported by Tom Worley
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gcc-4.8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The latest package available on testing (4.9-20140213-0ubuntu1) is missing the /lib/x86_64-linux-gnu/libgcc_s.so.1 file.
This causes apt-get to break immediately after apt-get upgrading.
The package is unusually small:
-rw-r--r-- 1 root root 1286 Feb 14 09:38 /var/cache/apt/archives/libgcc1_1%3a4.9-20140213-0ubuntu1_amd64.deb
at only just over 1KB
The version from packages.ubuntu.com for testing shows as 4.8.2 still, downloading this and dpkg-i'ing the package fixes the issue (until you apt-get update/upgrade again).
The old version of the file (which is 30+ times larger):
-rw-r--r-- 1 root root 37520 Feb 12 02:38 libgcc1_4.8.2-15ubuntu3_amd64.deb

Tags: trusty
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-4.8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Franck (alci) wrote :

If you're lucky, libgcc1_4.8.2-15ubuntu3_amd64.deb is probably lying around in /var/cache/apt/archives, sdo you can dpkg -i from here... (unless you cleaned files, then you'll need another computer to get the file !!!)

Revision history for this message
Tom Worley (tom-worley) wrote :

Just so it's obvious what is happening:

# apt-get -y upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libgcc1
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/1,286 B of archives.
After this operation, 100 kB disk space will be freed.
(Reading database ... 54392 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a4.9-20140213-0ubuntu1_amd64.deb ...
Unpacking libgcc1:amd64 (1:4.9-20140213-0ubuntu1) over (1:4.8.2-15ubuntu3) ...
Setting up libgcc1:amd64 (1:4.9-20140213-0ubuntu1) ...

# apt-get update
apt-get: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory

# ls -al /lib/x86_64-linux-gnu/libgcc_s.so.1
ls: cannot access /lib/x86_64-linux-gnu/libgcc_s.so.1: No such file or directory

# dpkg -i libgcc1_4.8.2-15ubuntu3_amd64.deb
dpkg: warning: downgrading libgcc1:amd64 from 1:4.9-20140213-0ubuntu1 to 1:4.8.2-15ubuntu3
(Reading database ... 54391 files and directories currently installed.)
Preparing to unpack libgcc1_4.8.2-15ubuntu3_amd64.deb ...
Unpacking libgcc1:amd64 (1:4.8.2-15ubuntu3) over (1:4.9-20140213-0ubuntu1) ...
Setting up libgcc1:amd64 (1:4.8.2-15ubuntu3) ...
Processing triggers for libc-bin (2.18-0ubuntu6) ...

# ls -al /lib/x86_64-linux-gnu/libgcc_s.so.1
-rw-r--r-- 1 root root 88408 Feb 12 02:18 /lib/x86_64-linux-gnu/libgcc_s.so.1

# apt-get update
Ign http://gb.archive.ubuntu.com trusty InRelease
Ign http://gb.archive.ubuntu.com trusty-updates InRelease
Ign http://gb.archive.ubuntu.com trusty-security InRelease
Hit http://gb.archive.ubuntu.com trusty Release.gpg
Hit http://gb.archive.ubuntu.com trusty-updates Release.gpg
...... etc.

Revision history for this message
Tom Worley (tom-worley) wrote :

Hi Franck,
Thanks, but unfortunately I apt-get clean after each upgrade, however I just wget'ed the file from the ubuntu package site, which temporarily sorted things until the package is fixed.
Thanks,
Tom.

Revision history for this message
Tom Worley (tom-worley) wrote :

Just for anyone who needs an emergency fix:

wget http://de.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.8/libgcc1_4.8.2-15ubuntu3_amd64.deb
dpkg -i libgcc1_4.8.2-15ubuntu3_amd64.deb

Hope that helps.

tags: added: trusty
Revision history for this message
Tom Worley (tom-worley) wrote :

I can confirm this bug has now been fixed in libgcc1 package version: 4.9-20140217-0ubuntu1

Revision history for this message
Tom Worley (tom-worley) wrote :

Fixed in libgcc1 version 4.9-20140217-0ubuntu1

Changed in gcc-4.8 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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