matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Can't install any package

Thu Oct 11, 2012 3:59 pm

Whemn I try to install anything with apt-get i get an error:

Code: Select all

root@raspberrypi:/home/pi# apt-get upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
root@raspberrypi:/home/pi# sudo dpkg --configure -a
Setting up libdbus-1-3:armhf (1.6.8-1) ...
Segmentation fault
dpkg: error processing libdbus-1-3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libuuid1:armhf (2.20.1-5.2) ...
Segmentation fault
dpkg: error processing libuuid1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libparted0debian1:armhf:
 libparted0debian1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libparted0debian1:armhf (--configure):
 dependency problems - leaving unconfigured
Setting up libxslt1.1:armhf (1.1.26-14) ...
Segmentation fault
dpkg: error processing libxslt1.1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libgtk-3-0:armhf (3.4.2-4) ...
Segmentation fault
dpkg: error processing libgtk-3-0:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of parted:
 parted depends on libparted0debian1 (>= 2.2-1); however:
  Package libparted0debian1:armhf is not configured yet.
 parted depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing parted (--configure):
 dependency problems - leaving unconfigured
Setting up libtiff4:armhf (3.9.6-9) ...
Segmentation fault
dpkg: error processing libtiff4:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libmysqlclient18:armhf (5.5.24+dfsg-9) ...
Segmentation fault
dpkg: error processing libmysqlclient18:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libsdl-mixer1.2:armhf (1.2.12-3) ...
Segmentation fault
dpkg: error processing libsdl-mixer1.2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libblkid1:armhf:
 libblkid1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libblkid1:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk-3-bin:
 libgtk-3-bin depends on libgtk-3-0 (>= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgtk-3-bin (--configure):
 dependency problems - leaving unconfigured
Setting up libcroco3:armhf (0.6.6-1) ...
Segmentation fault
dpkg: error processing libcroco3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Processing triggers for gconf2 ...
dpkg: dependency problems prevent configuration of python-pygame:
 python-pygame depends on libsdl-mixer1.2; however:
  Package libsdl-mixer1.2:armhf is not configured yet.

dpkg: error processing python-pygame (--configure):
 dependency problems - leaving unconfigured
Setting up binutils (2.22-7.1) ...
Segmentation fault
dpkg: error processing binutils (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libcap2:armhf (1:2.22-1.2) ...
Segmentation fault
dpkg: error processing libcap2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libgail-3-0:armhf:
 libgail-3-0:armhf depends on libgtk-3-0 (= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgail-3-0:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmount1:
 libmount1 depends on libblkid1 (>= 2.17.2); however:
  Package libblkid1:armhf is not configured yet.

dpkg: error processing libmount1 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libdbus-1-3:armhf
 libuuid1:armhf
 libparted0debian1:armhf
 libxslt1.1:armhf
 libgtk-3-0:armhf
 parted
 libtiff4:armhf
 libmysqlclient18:armhf
 libsdl-mixer1.2:armhf
 libblkid1:armhf
 libgtk-3-bin
 libcroco3:armhf
 python-pygame
 binutils
 libcap2:armhf
 libgail-3-0:armhf
 libmount1
root@raspberrypi:/home/pi# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
18 not fully installed or removed.
Need to get 0 B/2,951 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Internal Error, No file name for libuuid1
root@raspberrypi:/home/pi# 

notarat
Posts: 106
Joined: Wed Sep 12, 2012 12:32 pm

Re: Can't install any package

Thu Oct 11, 2012 4:03 pm

Did you do an apt-get update first? Just wondering...

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Can't install any package

Thu Oct 11, 2012 4:21 pm

Yes...

Code: Select all

root@raspberrypi:/home/pi# apt-get update
Hit http://archive.raspberrypi.org wheezy InRelease
Hit http://mirrordirector.raspbian.org wheezy InRelease
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Hit http://mirrordirector.raspbian.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_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Reading package lists... Done
root@raspberrypi:/home/pi# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
18 not fully installed or removed.
Need to get 0 B/2,951 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Internal Error, No file name for libuuid1
root@raspberrypi:/home/pi# 
It always says: E: Internal Error, No file name for libuuid1

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Can't install any package

Thu Oct 11, 2012 4:23 pm

sudo apt-get clean
sudo apt-get install -fy
sudo dpkg -i /var/cache/apt/archives/*.deb
sudo dpkg --configure -a
May work ... YMMV
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Can't install any package

Thu Oct 11, 2012 4:24 pm

And that happens when i try to install any package :(

Code: Select all

root@raspberrypi:/home/pi# apt-get install  omxplayer
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  omxplayer
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
18 not fully installed or removed.
Need to get 5,207 kB/8,157 kB of archives.
After this operation, 10.0 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian/ wheezy/main omxplayer armhf 0.2.1~git20120916~2612f1d7 [5,207 kB]
Fetched 5,207 kB in 41s (124 kB/s)                                             
E: Internal Error, No file name for libuuid1
root@raspberrypi:/home/pi# 

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Can't install any package

Thu Oct 11, 2012 4:32 pm

Yes i have allready tryed it before, but:

Code: Select all

root@raspberrypi:/home/pi# sudo apt-get clean
root@raspberrypi:/home/pi# sudo apt-get install -fy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
18 not fully installed or removed.
Need to get 2,951 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main gnome-themes-standard armhf 3.4.2-2 [2,951 kB]
Fetched 2,951 kB in 27s (108 kB/s)                                                                          
E: Internal Error, No file name for libuuid1
root@raspberrypi:/home/pi# sudo dpkg -i /var/cache/apt/archives/*.deb
(Reading database ... 60192 files and directories currently installed.)
Preparing to replace gnome-themes-standard 3.4.2-2 (using .../gnome-themes-standard_3.4.2-2_armhf.deb) ...
Unpacking replacement gnome-themes-standard ...
dpkg: dependency problems prevent configuration of gnome-themes-standard:
 gnome-themes-standard depends on libgtk-3-0 (>= 3.3.14); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing gnome-themes-standard (--install):
 dependency problems - leaving unconfigured
Processing triggers for gconf2 ...
Errors were encountered while processing:
 gnome-themes-standard
root@raspberrypi:/home/pi# sudo dpkg --configure -a
Setting up libdbus-1-3:armhf (1.6.8-1) ...
Segmentation fault
dpkg: error processing libdbus-1-3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libuuid1:armhf (2.20.1-5.2) ...
Segmentation fault
dpkg: error processing libuuid1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libparted0debian1:armhf:
 libparted0debian1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libparted0debian1:armhf (--configure):
 dependency problems - leaving unconfigured
Setting up libxslt1.1:armhf (1.1.26-14) ...
Segmentation fault
dpkg: error processing libxslt1.1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libgtk-3-0:armhf (3.4.2-4) ...
Segmentation fault
dpkg: error processing libgtk-3-0:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of parted:
 parted depends on libparted0debian1 (>= 2.2-1); however:
  Package libparted0debian1:armhf is not configured yet.
 parted depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing parted (--configure):
 dependency problems - leaving unconfigured
Setting up libtiff4:armhf (3.9.6-9) ...
Segmentation fault
dpkg: error processing libtiff4:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libmysqlclient18:armhf (5.5.24+dfsg-9) ...
Segmentation fault
dpkg: error processing libmysqlclient18:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libsdl-mixer1.2:armhf (1.2.12-3) ...
Segmentation fault
dpkg: error processing libsdl-mixer1.2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libblkid1:armhf:
 libblkid1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libblkid1:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk-3-bin:
 libgtk-3-bin depends on libgtk-3-0 (>= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgtk-3-bin (--configure):
 dependency problems - leaving unconfigured
Setting up libcroco3:armhf (0.6.6-1) ...
Segmentation fault
dpkg: error processing libcroco3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of python-pygame:
 python-pygame depends on libsdl-mixer1.2; however:
  Package libsdl-mixer1.2:armhf is not configured yet.

dpkg: error processing python-pygame (--configure):
 dependency problems - leaving unconfigured
Setting up binutils (2.22-7.1) ...
Segmentation fault
dpkg: error processing binutils (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libcap2:armhf (1:2.22-1.2) ...
Segmentation fault
dpkg: error processing libcap2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of gnome-themes-standard:
 gnome-themes-standard depends on libgtk-3-0 (>= 3.3.14); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing gnome-themes-standard (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgail-3-0:armhf:
 libgail-3-0:armhf depends on libgtk-3-0 (= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgail-3-0:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmount1:
 libmount1 depends on libblkid1 (>= 2.17.2); however:
  Package libblkid1:armhf is not configured yet.

dpkg: error processing libmount1 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libdbus-1-3:armhf
 libuuid1:armhf
 libparted0debian1:armhf
 libxslt1.1:armhf
 libgtk-3-0:armhf
 parted
 libtiff4:armhf
 libmysqlclient18:armhf
 libsdl-mixer1.2:armhf
 libblkid1:armhf
 libgtk-3-bin
 libcroco3:armhf
 python-pygame
 binutils
 libcap2:armhf
 gnome-themes-standard
 libgail-3-0:armhf
 libmount1
root@raspberrypi:/home/pi# 

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Can't install any package

Thu Oct 11, 2012 6:58 pm

Can you try issuing the following commands and post the results

sed -i 's/set -e/set -ev/' var/lib/dpkg/info/libuuid1:armhf.postinst
dpkg --configure -a

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Can't install any package

Fri Oct 12, 2012 6:48 am

Code: Select all

sed: can't read var/lib/dpkg/info/libuuid1:armhf.postinst: No such file or directory 

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: Can't install any package

Fri Oct 12, 2012 7:52 am

Your running as root?

root@raspberrypi:/home/pi# apt-get upgrade

what image have you loaded?
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Can't install any package

Fri Oct 12, 2012 8:36 am

Yes i am running it as root and i have the latest raspbian image

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Can't install any package

Fri Oct 12, 2012 10:38 am

Sorry I made a slight error in the commands I gave you. The fixed version is below.

sed -i 's/set -e/set -ev/' /var/lib/dpkg/info/libuuid1:armhf.postinst
dpkg --configure -a

Can you try them and post the results.

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Can't install any package

Fri Oct 12, 2012 1:51 pm

Code: Select all

root@raspberrypi:/home/pi# sed -i 's/set -e/set -ev/' var/lib/dpkg/info/libuuid1:armhf.postinst
sed: can't read var/lib/dpkg/info/libuuid1:armhf.postinst: No such file or directory
root@raspberrypi:/home/pi# sudo sed -i 's/set -e/set -ev/' var/lib/dpkg/info/libuuid1:armhf.postinst
sed: can't read var/lib/dpkg/info/libuuid1:armhf.postinst: No such file or directory
root@raspberrypi:/home/pi# sed -i 's/set -e/set -ev/' /var/lib/dpkg/info/libuuid1:armhf.postinst
root@raspberrypi:/home/pi# dpkg --configure -a
Setting up libdbus-1-3:armhf (1.6.8-1) ...
Segmentation fault
dpkg: error processing libdbus-1-3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libuuid1:armhf (2.20.1-5.2) ...

ADDUSERCONF='/etc/adduser.conf'

if test -f $ADDUSERCONF; then
    FIRST_SYSTEM_UID=$(sed -n "s/^[[:space:]]*FIRST_SYSTEM_UID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
    LAST_SYSTEM_UID=$(sed -n "s/^[[:space:]]*LAST_SYSTEM_UID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
    FIRST_SYSTEM_GID=$(sed -n "s/^[[:space:]]*FIRST_SYSTEM_GID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
    LAST_SYSTEM_GID=$(sed -n "s/^[[:space:]]*LAST_SYSTEM_GID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
fi

if test -z "$FIRST_SYSTEM_UID"; then
    FIRST_SYSTEM_UID=100
fi
if test -z "$LAST_SYSTEM_UID"; then
    LAST_SYSTEM_UID=999
fi
if test -z "$FIRST_SYSTEM_GID"; then
    FIRST_SYSTEM_GID=100
fi
if test -z "$LAST_SYSTEM_GID"; then
    LAST_SYSTEM_GID=999
fi

if ! getent group | grep -q libuuid; then
  groupadd -f -K GID_MIN=$FIRST_SYSTEM_GID -K GID_MAX=$LAST_SYSTEM_GID libuuid
fi
if ! getent passwd | grep -q libuuid; then
   useradd -d /var/lib/libuuid -K UID_MIN=$FIRST_SYSTEM_UID -K UID_MAX=$LAST_SYSTEM_UID -g libuuid libuuid
fi

mkdir -p /var/lib/libuuid
chown libuuid:libuuid /var/lib/libuuid
chmod 2775 /var/lib/libuuid

# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
	ldconfig
fi
Segmentation fault
dpkg: error processing libuuid1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libparted0debian1:armhf:
 libparted0debian1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libparted0debian1:armhf (--configure):
 dependency problems - leaving unconfigured
Setting up libxslt1.1:armhf (1.1.26-14) ...
Segmentation fault
dpkg: error processing libxslt1.1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libgtk-3-0:armhf (3.4.2-4) ...
Segmentation fault
dpkg: error processing libgtk-3-0:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of parted:
 parted depends on libparted0debian1 (>= 2.2-1); however:
  Package libparted0debian1:armhf is not configured yet.
 parted depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing parted (--configure):
 dependency problems - leaving unconfigured
Setting up libtiff4:armhf (3.9.6-9) ...
Segmentation fault
dpkg: error processing libtiff4:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libmysqlclient18:armhf (5.5.24+dfsg-9) ...
Segmentation fault
dpkg: error processing libmysqlclient18:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libsdl-mixer1.2:armhf (1.2.12-3) ...
Segmentation fault
dpkg: error processing libsdl-mixer1.2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libblkid1:armhf:
 libblkid1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libblkid1:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk-3-bin:
 libgtk-3-bin depends on libgtk-3-0 (>= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgtk-3-bin (--configure):
 dependency problems - leaving unconfigured
Setting up libcroco3:armhf (0.6.6-1) ...
Segmentation fault
dpkg: error processing libcroco3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of python-pygame:
 python-pygame depends on libsdl-mixer1.2; however:
  Package libsdl-mixer1.2:armhf is not configured yet.

dpkg: error processing python-pygame (--configure):
 dependency problems - leaving unconfigured
Setting up binutils (2.22-7.1) ...
Segmentation fault
dpkg: error processing binutils (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libcap2:armhf (1:2.22-1.2) ...
Segmentation fault
dpkg: error processing libcap2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of gnome-themes-standard:
 gnome-themes-standard depends on libgtk-3-0 (>= 3.3.14); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing gnome-themes-standard (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgail-3-0:armhf:
 libgail-3-0:armhf depends on libgtk-3-0 (= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgail-3-0:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmount1:
 libmount1 depends on libblkid1 (>= 2.17.2); however:
  Package libblkid1:armhf is not configured yet.

dpkg: error processing libmount1 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libdbus-1-3:armhf
 libuuid1:armhf
 libparted0debian1:armhf
 libxslt1.1:armhf
 libgtk-3-0:armhf
 parted
 libtiff4:armhf
 libmysqlclient18:armhf
 libsdl-mixer1.2:armhf
 libblkid1:armhf
 libgtk-3-bin
 libcroco3:armhf
 python-pygame
 binutils
 libcap2:armhf
 gnome-themes-standard
 libgail-3-0:armhf
 libmount1
root@raspberrypi:/home/pi# sed -i 's/set -e/set -ev/' /var/lib/dpkg/info/libuuid1:armhf.postinst
root@raspberrypi:/home/pi# dpkg --configure -a
Setting up libdbus-1-3:armhf (1.6.8-1) ...
Segmentation fault
dpkg: error processing libdbus-1-3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libuuid1:armhf (2.20.1-5.2) ...

ADDUSERCONF='/etc/adduser.conf'

if test -f $ADDUSERCONF; then
    FIRST_SYSTEM_UID=$(sed -n "s/^[[:space:]]*FIRST_SYSTEM_UID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
    LAST_SYSTEM_UID=$(sed -n "s/^[[:space:]]*LAST_SYSTEM_UID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
    FIRST_SYSTEM_GID=$(sed -n "s/^[[:space:]]*FIRST_SYSTEM_GID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
    LAST_SYSTEM_GID=$(sed -n "s/^[[:space:]]*LAST_SYSTEM_GID[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" $ADDUSERCONF)
fi

if test -z "$FIRST_SYSTEM_UID"; then
    FIRST_SYSTEM_UID=100
fi
if test -z "$LAST_SYSTEM_UID"; then
    LAST_SYSTEM_UID=999
fi
if test -z "$FIRST_SYSTEM_GID"; then
    FIRST_SYSTEM_GID=100
fi
if test -z "$LAST_SYSTEM_GID"; then
    LAST_SYSTEM_GID=999
fi

if ! getent group | grep -q libuuid; then
  groupadd -f -K GID_MIN=$FIRST_SYSTEM_GID -K GID_MAX=$LAST_SYSTEM_GID libuuid
fi
if ! getent passwd | grep -q libuuid; then
   useradd -d /var/lib/libuuid -K UID_MIN=$FIRST_SYSTEM_UID -K UID_MAX=$LAST_SYSTEM_UID -g libuuid libuuid
fi

mkdir -p /var/lib/libuuid
chown libuuid:libuuid /var/lib/libuuid
chmod 2775 /var/lib/libuuid

# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
	ldconfig
fi
Segmentation fault
dpkg: error processing libuuid1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libparted0debian1:armhf:
 libparted0debian1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libparted0debian1:armhf (--configure):
 dependency problems - leaving unconfigured
Setting up libxslt1.1:armhf (1.1.26-14) ...
Segmentation fault
dpkg: error processing libxslt1.1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libgtk-3-0:armhf (3.4.2-4) ...
Segmentation fault
dpkg: error processing libgtk-3-0:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of parted:
 parted depends on libparted0debian1 (>= 2.2-1); however:
  Package libparted0debian1:armhf is not configured yet.
 parted depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing parted (--configure):
 dependency problems - leaving unconfigured
Setting up libtiff4:armhf (3.9.6-9) ...
Segmentation fault
dpkg: error processing libtiff4:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libmysqlclient18:armhf (5.5.24+dfsg-9) ...
Segmentation fault
dpkg: error processing libmysqlclient18:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libsdl-mixer1.2:armhf (1.2.12-3) ...
Segmentation fault
dpkg: error processing libsdl-mixer1.2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of libblkid1:armhf:
 libblkid1:armhf depends on libuuid1 (>= 2.16); however:
  Package libuuid1:armhf is not configured yet.

dpkg: error processing libblkid1:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgtk-3-bin:
 libgtk-3-bin depends on libgtk-3-0 (>= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgtk-3-bin (--configure):
 dependency problems - leaving unconfigured
Setting up libcroco3:armhf (0.6.6-1) ...
Segmentation fault
dpkg: error processing libcroco3:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of python-pygame:
 python-pygame depends on libsdl-mixer1.2; however:
  Package libsdl-mixer1.2:armhf is not configured yet.

dpkg: error processing python-pygame (--configure):
 dependency problems - leaving unconfigured
Setting up binutils (2.22-7.1) ...
Segmentation fault
dpkg: error processing binutils (--configure):
 subprocess installed post-installation script returned error exit status 139
Setting up libcap2:armhf (1:2.22-1.2) ...
Segmentation fault
dpkg: error processing libcap2:armhf (--configure):
 subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of gnome-themes-standard:
 gnome-themes-standard depends on libgtk-3-0 (>= 3.3.14); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing gnome-themes-standard (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgail-3-0:armhf:
 libgail-3-0:armhf depends on libgtk-3-0 (= 3.4.2-4); however:
  Package libgtk-3-0:armhf is not configured yet.

dpkg: error processing libgail-3-0:armhf (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmount1:
 libmount1 depends on libblkid1 (>= 2.17.2); however:
  Package libblkid1:armhf is not configured yet.

dpkg: error processing libmount1 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libdbus-1-3:armhf
 libuuid1:armhf
 libparted0debian1:armhf
 libxslt1.1:armhf
 libgtk-3-0:armhf
 parted
 libtiff4:armhf
 libmysqlclient18:armhf
 libsdl-mixer1.2:armhf
 libblkid1:armhf
 libgtk-3-bin
 libcroco3:armhf
 python-pygame
 binutils
 libcap2:armhf
 gnome-themes-standard
 libgail-3-0:armhf
 libmount1
root@raspberrypi:/home/pi# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
18 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Internal Error, No file name for libuuid1
root@raspberrypi:/home/pi# 
Still the same :(

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Can't install any package

Fri Oct 12, 2012 2:33 pm

ok now try

wget http://archive.raspbian.org/raspbian/po ... _armhf.deb
dpkg -i libc-bin_2.13-35_armhf.deb
dpkg --configure -a

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: Can't install any package

Fri Oct 12, 2012 6:46 pm

Thanks man that worked :)

Minor_Miner
Posts: 7
Joined: Sat Jul 07, 2012 7:41 pm

Re: Can't install any package

Sun Oct 21, 2012 5:00 pm

I'm having the same problems as the person above me, and tried the fix above. On the second line, it gave me this:

Code: Select all

pi@raspberrypi ~ $ dpkg -i libc-bin_2.13-35_armhf.deb
dpkg: error: requested operation requires superuser privilege
pi@raspberrypi ~ $ sudo dpkg -i libc-bin_2.13-35_armhf.deb
dpkg: error: parsing file '/var/lib/dpkg/updates/0056' near line 0:
 EOF after field name `'
I've also had several SD card corruptions recently, it does it constantly, but it appears to be okay at the moment.

Any help for this linux n00b would be greatly appreciated.

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Can't install any package

Mon Oct 22, 2012 3:52 pm

Try removing /var/lib/dpkg/updates/0056 and trying again

Minor_Miner
Posts: 7
Joined: Sat Jul 07, 2012 7:41 pm

Re: Can't install any package

Tue Oct 23, 2012 10:25 pm

plugwash wrote:Try removing /var/lib/dpkg/updates/0056 and trying again
I tried doing that with the file browser, and it wouldn't let me, saying "permission denied".
How else should I remove it, then? Please provide good instructions, I'm new to Linux. Thanks!

Typed from my Pi

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Can't install any package

Tue Oct 23, 2012 11:24 pm

sudo rm /var/lib/dpkg/updates/0056

Minor_Miner
Posts: 7
Joined: Sat Jul 07, 2012 7:41 pm

Re: Can't install any package

Wed Oct 24, 2012 1:37 am

That worked, thanks!

chowanec
Posts: 21
Joined: Tue Jun 05, 2012 2:41 am

Re: Can't install any package

Sat Nov 24, 2012 8:08 pm

So -- seems like that worked for me too...

Now, can someone tell me what I just did? :)

-Chow

leo
Posts: 6
Joined: Wed Sep 18, 2013 3:48 pm

Re: Can't install any package

Wed Sep 18, 2013 4:03 pm

Hi,
found this thread when dealing with a similar problem, however I have no clue what to do in my case. Any attempt to use apt-get results in errors concerning 2 python packages, see below. Thanks for any help.
Regards, Leo

root@raspberrypi:/tmp# apt-get install python-numpy python-rpi.gpio
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libblas3gf liblapack3gf
Use 'apt-get autoremove' to remove them.
Suggested packages:
python-numpy-doc python-numpy-dbg python-nose python-dev gfortran
The following packages will be upgraded:
python-numpy python-rpi.gpio
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
194 not fully installed or removed.
Need to get 0 B/2,494 kB of archives.
After this operation, 14.3 kB of additional disk space will be used.
(Reading database ... 61956 files and directories currently installed.)
Preparing to replace python-numpy 1:1.6.2-1 (using .../python-numpy_1%3a1.6.2-1.2_armhf.deb) ...
Segmentation fault
dpkg: warning: subprocess old pre-removal script returned error exit status 139
dpkg: trying script from the new package instead ...
Segmentation fault
dpkg: error processing /var/cache/apt/archives/python-numpy_1%3a1.6.2-1.2_armhf.deb (--unpack):
subprocess new pre-removal script returned error exit status 139
Segmentation fault
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 139
Preparing to replace python-rpi.gpio 0.4.1a-1 (using .../python-rpi.gpio_0.5.3a-1_armhf.deb) ...
Segmentation fault
dpkg: warning: subprocess old pre-removal script returned error exit status 139
dpkg: trying script from the new package instead ...
Segmentation fault
dpkg: error processing /var/cache/apt/archives/python-rpi.gpio_0.5.3a-1_armhf.deb (--unpack):
subprocess new pre-removal script returned error exit status 139
Segmentation fault
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
/var/cache/apt/archives/python-numpy_1%3a1.6.2-1.2_armhf.deb
/var/cache/apt/archives/python-rpi.gpio_0.5.3a-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:/tmp#

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Can't install any package

Wed Sep 18, 2013 10:37 pm

What is your /etc/apt/sources.list like?

Do you get a segfault if you run update-python-modules manually?

Can you successfully run python interactively?

Can you successfully perform the following imports when running python interactively?

import sys,os,shutil
from optparse import OptionParser
from subprocess import call
from py_compile import compile, PyCompileError
sys.path.append("/usr/share/python-support/private/")
import pysupport
from pysupport import py_supported,py_installed,py_oldversions

leo
Posts: 6
Joined: Wed Sep 18, 2013 3:48 pm

Re: Can't install any package

Thu Sep 19, 2013 5:57 am

Hi,
below are my results. Thanks in advance.

root@raspberrypi:~/bin# cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
root@raspberrypi:~/bin#

root@raspberrypi:/# update-python-modules
Segmentation fault
root@raspberrypi:/#

root@raspberrypi:~/bin# cat test.py
import sys,os,shutil
from optparse import OptionParser
from subprocess import call
from py_compile import compile, PyCompileError
sys.path.append("/usr/share/python-support/private/")
import pysupport
from pysupport import py_supported,py_installed,py_oldversions
root@raspberrypi:~/bin#

root@raspberrypi:~/bin# python test.py
Segmentation fault
root@raspberrypi:~/bin#

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Can't install any package

Thu Sep 19, 2013 9:52 am

leo wrote: root@raspberrypi:~/bin# cat test.py
import sys,os,shutil
from optparse import OptionParser
from subprocess import call
from py_compile import compile, PyCompileError
sys.path.append("/usr/share/python-support/private/")
import pysupport
from pysupport import py_supported,py_installed,py_oldversions
root@raspberrypi:~/bin#

root@raspberrypi:~/bin# python test.py
Segmentation fault
root@raspberrypi:~/bin#
Can you try running those imports in interactive mode one by one so we can see which one is causing python to segfault.

leo
Posts: 6
Joined: Wed Sep 18, 2013 3:48 pm

Re: Can't install any package

Thu Sep 19, 2013 2:38 pm

Hi,

attaches are the results. Unfortunately I am not familiar with Python so I have no idea concerning the syntactical errors:

root@raspberrypi:~/bin#
root@raspberrypi:~/bin# echo 'import sys' > test.py
root@raspberrypi:~/bin# python test.py
root@raspberrypi:~/bin# echo 'import os' > test.py
root@raspberrypi:~/bin# python test.py
root@raspberrypi:~/bin# echo 'import shutil' > test.py
root@raspberrypi:~/bin# python test.py
Segmentation fault
root@raspberrypi:~/bin# echo 'from optparse import OptionParser' > test.pyroot@raspberrypi:~/bin# python test.py
root@raspberrypi:~/bin# echo 'from subprocess import call' > test.pyroot@raspberrypi:~/bin# python test.py
Segmentation fault
root@raspberrypi:~/bin# echo 'from py_compile import compile' > test.py
root@raspberrypi:~/bin# python test.py
Segmentation fault
root@raspberrypi:~/bin# echo 'from py_compile import PyCompileError' > test.py
root@raspberrypi:~/bin# python test.py
Segmentation fault
root@raspberrypi:~/bin# echo 'import pysupport' > test.py
root@raspberrypi:~/bin# python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
import pysupport
ImportError: No module named pysupport
root@raspberrypi:~/bin# echo 'from pysupport import py_supported' > test.py
root@raspberrypi:~/bin# python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pysupport import py_supported
ImportError: No module named pysupport
root@raspberrypi:~/bin# echo 'from PySupport import py_supported' > test.py
root@raspberrypi:~/bin# python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
from PySupport import py_supported
ImportError: No module named PySupport
root@raspberrypi:~/bin#

Return to “Raspberry Pi OS”