PDA

View Full Version : [ubuntu] 12.10 software update - broken packages



billio
April 1st, 2013, 10:33 PM
When trying to perform a software update I get the following message :

The following packages have unmet dependencies:

libgl1-mesa-dri:i386: Depends: libgcc1 (>= 1:4.1.1) but 1:4.7.2-2ubuntu1 is installed

I have switched off all software sources apart from Canonical and Community maintained sources.

I have read a few threads which might be relevant but which refer to Steam. I have not installed Steam.

Can anyone help ?.

Bashing-om
April 1st, 2013, 11:45 PM
billio; Hi !

try this from terminal:


sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade which will try and resolve the dependency issue finally with the "dist-upgrade' to use it's smart mode to do so.
hope this helps

billio
April 2nd, 2013, 07:58 AM
Thanks but those commands do not work the outcome f the dist-upgrade being :

Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/libdrm-intel1_2.4.39-0ubuntu1_i386.deb
/var/cache/apt/archives/libdrm-nouveau2_2.4.39-0ubuntu1_i386.deb
/var/cache/apt/archives/libdrm-radeon1_2.4.39-0ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Bashing-om
April 2nd, 2013, 06:45 PM
billio;

That output is indicative of a graver underlying problem (all graphics driver related). Are you having display problems ?

just try'n to help

billio
April 3rd, 2013, 07:37 PM
I have not noticed any display problems.

I have an NVidia Gfore 7300 card and ther driever is NVIDIA UNIX x86_64 Kernel Module 304.48 Sun Sep 9 20:22:27 PDT 2012

billio
April 3rd, 2013, 07:43 PM
The dpkg errors are :

Unpacking libdrm-intel1:i386 (from .../libdrm-intel1_2.4.39-0ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libdrm-intel1_2.4.39-0ubuntu1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libdrm-intel1/changelog.Debian.gz', which is different from other instances of package libdrm-intel1:i386
No apport report written because MaxReports has already been reached

Unpacking libdrm-nouveau2:i386 (from .../libdrm-nouveau2_2.4.39-0ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libdrm-nouveau2_2.4.39-0ubuntu1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libdrm-nouveau2/changelog.Debian.gz', which is different from other instances of package libdrm-nouveau2:i386
No apport report written because MaxReports has already been reached

Unpacking libdrm-radeon1:i386 (from .../libdrm-radeon1_2.4.39-0ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libdrm-radeon1_2.4.39-0ubuntu1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libdrm-radeon1/changelog.Debian.gz', which is different from other instances of package libdrm-radeon1:i386
No apport report written because MaxReports has already been reached

billio
April 3rd, 2013, 08:16 PM
This guthub exchange describes my problem, though I haven't installed Steam, but it doesn't give a solution

https://github.com/ValveSoftware/steam-for-linux/issues/1967

Bashing-om
April 3rd, 2013, 08:46 PM
billio;
Lemme take a "looksee" and think-about//

i'll be back

schragge
April 3rd, 2013, 08:56 PM
Have a look at this thread (http://www.kubuntuforums.net/showthread.php?60545-Upgrade-install-issue-libdrm2). Instead of (re)moving the conflicting files, you can just try

sudo dpkg --path-exclude=/usr/share/doc/\*/changelog.Debian.gz -i /var/cache/apt/archives/libdrm-*.deb
Speaking more generally, your problem seems to stem from combining 64-bit and 32-bit packages. I presume you're running an amd64 architecture, but have some i386 applications that pull 32-bit libraries. If I am right and you actually are on a 64-bit architecture then please post the output of

dpkg --get-selections|grep :i386

Bashing-om
April 3rd, 2013, 09:36 PM
@ billio and schragge ;
I am somewhat floundering at this time. Can not get it into my mind how/why the package manager is hollering about overwriting a documentation file. I am torn as to how to proceed.
Maybe look and see if those files even exist or the directory that should hold them ?
a) can we not just (re)move the "changelog.Debian.gz"(s) file and attempt to (re-)install ?
b) apt-get install down through the directory tree to further define the dependencies ?


again I am in a learning condition

schragge
April 3rd, 2013, 09:43 PM
Can not get it into my mind how/why the package manager is hollering about overwriting a documentation file.My understanding of it is this. A package for amd64 architecture is already installed, say libdrm-intel1:amd64. That package contains /usr/share/doc/libdrm-intel1/changelog.Debian.gz. Now, some 32-bit application depends on libdrm-intel1:i386 that also contains /usr/share/doc/libdrm-intel1/changelog.Debian.gz. The packages conflict with each other.

I'm simplifying a bit. In fact, something depends on libgl1-mesa-dri:i386 which in turn depends on libdrm-*:i386 packages.

billio
April 3rd, 2013, 11:19 PM
The first command has worked and I can now run Software Updater without a problem. Thanks very much for you help.

You are correct about my running amd64 architecture . I think you mean grep without the -w (no output from that ) :

gcc-4.7-base:i386 install
libasn1-8-heimdal:i386 install
libasound2:i386 install
libasound2-plugins:i386 install
libasprintf0c2:i386 install
libasyncns0:i386 install
libavahi-client3:i386 install
libavahi-common-data:i386 install
libavahi-common3:i386 install
libc6:i386 install
libcapi20-3:i386 install
libcomerr2:i386 install
libcroco3:i386 install
libcups2:i386 install
libdb5.1:i386 install
libdbus-1-3:i386 install
libdrm2:i386 install
libexif12:i386 install
libexpat1:i386 install
libffi6:i386 install
libflac8:i386 install
libfontconfig1:i386 install
libfreetype6:i386 install
libgcc1:i386 install
libgcrypt11:i386 install
libgd2-xpm:i386 install
libgettextpo0:i386 install
libgif4:i386 install
libgl1-mesa-dri:i386 install
libgl1-mesa-glx:i386 install
libglapi-mesa:i386 install
libglib2.0-0:i386 install
libglu1-mesa:i386 install
libgnutls26:i386 install
libgomp1:i386 install
libgpg-error0:i386 install
libgphoto2-2:i386 install
libgphoto2-port0:i386 install
libgpm2:i386 install
libgssapi-krb5-2:i386 install
libgssapi3-heimdal:i386 install
libgstreamer-plugins-base0.10-0:i386 install
libgstreamer0.10-0:i386 install
libhcrypto4-heimdal:i386 install
libheimbase1-heimdal:i386 install
libheimntlm0-heimdal:i386 install
libhx509-5-heimdal:i386 install
libice6:i386 install
libieee1284-3:i386 install
libjack-jackd2-0:i386 install
libjbig0:i386 install
libjpeg-turbo8:i386 install
libjpeg8:i386 install
libjson0:i386 install
libk5crypto3:i386 install
libkeyutils1:i386 install
libkrb5-26-heimdal:i386 install
libkrb5-3:i386 install
libkrb5support0:i386 install
liblcms1:i386 install
libldap-2.4-2:i386 install
libllvm3.1:i386 install
libltdl7:i386 install
liblzma5:i386 install
libmpg123-0:i386 install
libncurses5:i386 install
libogg0:i386 install
libopenal1:i386 install
liborc-0.4-0:i386 install
libp11-kit0:i386 install
libpciaccess0:i386 install
libpcre3:i386 install
libpng12-0:i386 install
libpulse0:i386 install
libroken18-heimdal:i386 install
libsamplerate0:i386 install
libsane:i386 install
libsasl2-2:i386 install
libsasl2-modules:i386 install
libselinux1:i386 install
libsm6:i386 install
libsndfile1:i386 install
libspeexdsp1:i386 install
libsqlite3-0:i386 install
libssl1.0.0:i386 install
libstdc++6:i386 install
libtasn1-3:i386 install
libtiff5:i386 install
libtinfo5:i386 install
libtxc-dxtn-s2tc0:i386 install
libunistring0:i386 install
libusb-0.1-4:i386 install
libusb-1.0-0:i386 install
libuuid1:i386 install
libv4l-0:i386 install
libv4lconvert0:i386 install
libvorbis0a:i386 install
libvorbisenc2:i386 install
libwind0-heimdal:i386 install
libwrap0:i386 install
libx11-6:i386 install
libx11-xcb1:i386 install
libxau6:i386 install
libxcb-glx0:i386 install
libxcb1:i386 install
libxcomposite1:i386 install
libxcursor1:i386 install
libxdamage1:i386 install
libxdmcp6:i386 install
libxext6:i386 install
libxfixes3:i386 install
libxi6:i386 install
libxinerama1:i386 install
libxml2:i386 install
libxpm4:i386 install
libxrandr2:i386 install
libxrender1:i386 install
libxslt1.1:i386 install
libxt6:i386 install
libxxf86vm1:i386 install
wine-gecko1.4:i386 install
zlib1g:i386 install

billio
April 3rd, 2013, 11:29 PM
Do you mean that the following has probably caused the problem :

sudo dpkg --get-selections|grep libdrm
[sudo] password for billo:
libdrm-intel1:amd64 install
libdrm-intel1:i386 install
libdrm-nouveau1a:amd64 install
libdrm-nouveau2:amd64 install
libdrm-nouveau2:i386 install
libdrm-radeon1:amd64 install
libdrm-radeon1:i386 install
libdrm2:amd64 install
libdrm2:i386 install

How can I find out what has caused the i386 packages to be loaded ?.

schragge
April 3rd, 2013, 11:59 PM
Do you mean that the following has probably caused the problem :


sudo dpkg --get-selections|grep libdrm
[sudo] password for billo:
libdrm-intel1:amd64 install
libdrm-intel1:i386 install
libdrm-nouveau1a:amd64 install
libdrm-nouveau2:amd64 install
libdrm-nouveau2:i386 install
libdrm-radeon1:amd64 install
libdrm-radeon1:i386 install
libdrm2:amd64 install
libdrm2:i386 install

Exactly.

How can I find out what has caused the i386 packages to be loaded ?.The only non-library package in the first output is wine-gecko1.4. I think it's the culprit. Actually, wine1.4-i386 is only one of recommends of this package, so if you aren't using any 32-bit Windows applications it probably could be removed:


sudo apt-get remove wine1.4-i386
sudo apt-get autoremove

I guess the error you encountered is a packaging bug in the libdrm source package as libraries for different architectures should be co-installable. I suggest that you subscribe to LP#1134515 and click on the green link at the top Does this bug affects you? to get counted.