tomdean
Posts: 28
Joined: Tue Feb 19, 2013 4:02 am

apt-get -f install fails

Sat Mar 02, 2013 10:51 pm

# uname -a
Linux raspberrypi 3.6.11+ #385 PREEMPT Fri Mar 1 21:53:22 GMT 2013 armv6l GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.0 (wheezy)
Release: 7.0
Codename: wheezy
# rm -Rf /var/apt/lists/*
# rm /var/dpkg/status
# touch /var/dpkg/status
# apt-get -f update
Hit http://mirrordirector.raspbian.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy InRelease
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/contrib armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/non-free armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/rpi armhf Packages
Ign http://archive.raspberrypi.org wheezy/main Translation-en_US
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Done
# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libgcc1
The following NEW packages will be installed:
libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/54.4 kB of archives.
After this operation, 203 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: regarding .../libgcc1_1%3a4.7.2-5+rpi1_armhf.deb containing libgcc1:armhf, pre-dependency problem:
libgcc1 pre-depends on multiarch-support
multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.7.2-5+rpi1_armhf.deb (--unpack):
pre-dependency problem - not installing libgcc1:armhf
Errors were encountered while processing:
/var/cache/apt/archives/libgcc1_1%3a4.7.2-5+rpi1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

debconf is /usr/bin/debconf

How do I fix this?

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: apt-get -f install fails

Sun Mar 03, 2013 6:58 pm

Presumably you've downloaded 'cutting edge' updates from github or something ?

The kernel version is ahead of a normally upgraded Raspdian wheezy.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

tomdean
Posts: 28
Joined: Tue Feb 19, 2013 4:02 am

Re: apt-get -f install fails

Sun Mar 03, 2013 8:12 pm

I used rpi-update to get this version.

I am running on a usb disk, booting from sd card.

I did a newfs on the usb disk and reinstalled. All working now.

My best guess is a failed apt-get, then downhill from there.

Don't understand why rm /var/lib/apt/lists/* and rm /var/lib/dpkg/stats and touch /var/lib/dpkg/stats followed by apt-get -f install did not fix things.

User avatar
kyounger
Posts: 8
Joined: Fri Mar 22, 2013 2:50 pm

Re: apt-get -f install fails

Fri Mar 22, 2013 3:09 pm

this seems to be related:
http://www.raspberrypi.org/phpBB3/viewt ... d.#p198723

something I installed made me dependent on multi arch support, but it was never config'd?

User avatar
kyounger
Posts: 8
Joined: Fri Mar 22, 2013 2:50 pm

Re: apt-get -f install fails

Fri Mar 22, 2013 3:26 pm

worser and worser: I found someone who says:

multiarch-support depends on libc6 which depends on libgcc1 which depends on multiarch-support:

Code:
[email protected]:/var/cache/apt/archives$ sudo dpkg -i multiarch-support
dpkg: error processing multiarch-support (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
multiarch-support
[email protected]:/var/cache/apt/archives$ sudo dpkg -i multiarch-support_2.13-20ubuntu2_i386.deb
Selecting previously deselected package multiarch-support.
(Reading database ... 2623 files and directories currently installed.)
Unpacking multiarch-support (from multiarch-support_2.13-20ubuntu2_i386.deb) ...
dpkg: dependency problems prevent configuration of multiarch-support:
multiarch-support depends on libc6 (>= 2.13-0ubuntu6); however:
Package libc6 is not configured yet.
dpkg: error processing multiarch-support (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
multiarch-support
[email protected]:/var/cache/apt/archives$ sudo dpkg -i libgcc1_1%3a4.6.1-9ubuntu3_i386.deb
dpkg: regarding libgcc1_1%3a4.6.1-9ubuntu3_i386.deb containing libgcc1, pre-dependency problem:
libgcc1 pre-depends on multiarch-support
multiarch-support is unpacked, but has never been configured.
dpkg: error processing libgcc1_1%3a4.6.1-9ubuntu3_i386.deb (--install):
pre-dependency problem - not installing libgcc1
Errors were encountered while processing:
libgcc1_1%3a4.6.1-9ubuntu3_i386.deb


This is one of those things that make Linux really nothing more than a science fair experiment. Sigh. I'll keep at it.

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: apt-get -f install fails

Fri Mar 22, 2013 4:42 pm

One reason I stay away from rpi-update. Its cutting edge, its experimental, it breaks stuff.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

mayonnaisemorbidity
Posts: 1
Joined: Sat Mar 23, 2013 5:25 pm

Re: apt-get -f install fails

Sat Mar 23, 2013 5:33 pm

I fixed the issues with apt-get by doing the following:

wget http://archive.raspbian.org/raspbian/po ... _armhf.deb

sudo dpkg -i --force-depends multiarch-support_2.13-38+rpi2_armhf.deb
sudo apt-get -f install
sudo apt-get update

It gives many ldconfig errors when updating (IE: file xyz is not an ELF file - it has the wrong magic bytes at the start.), but at least I can install packages again (whether they work is another animal altogether).

FYI I am using the recommended download on this page: http://www.raspberrypi.org/downloads
The file is: http://downloads.raspberrypi.org/images ... spbian.zip

I am assuming that isn't the "cutting edge" version, is it?

hongjoo
Posts: 1
Joined: Wed Mar 13, 2013 7:34 am

Re: apt-get -f install fails

Wed Feb 19, 2014 11:41 am

I had a same issue while installing cifs-utils, and this resolved the problem.

Don't know what was wrong with it, don't know how it worked after all, just moving forward. :)

Anyway, thanks!
mayonnaisemorbidity wrote:I fixed the issues with apt-get by doing the following:

wget http://archive.raspbian.org/raspbian/po ... _armhf.deb

sudo dpkg -i --force-depends multiarch-support_2.13-38+rpi2_armhf.deb
sudo apt-get -f install
sudo apt-get update

It gives many ldconfig errors when updating (IE: file xyz is not an ELF file - it has the wrong magic bytes at the start.), but at least I can install packages again (whether they work is another animal altogether).

FYI I am using the recommended download on this page: http://www.raspberrypi.org/downloads
The file is: http://downloads.raspberrypi.org/images ... spbian.zip

I am assuming that isn't the "cutting edge" version, is it?

Return to “General discussion”