trying "sudo apt-get install nxagent" package libxcompshad3 not installed failed to install/upgrade: trying to overwrite /usr/lib/libXcompshad.so.3 , which is also in package libxcompshad 0:3.2.0-1hardy1

Bug #480339 reported by Robin Mallinson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nxcompshad (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Was being installed as a dependency of nxagent, but failed.

rmallins@rmallins-desktop:/etc/nxserver$ lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
rmallins@rmallins-desktop:/etc/nxserver$

rmallins@rmallins-desktop:/etc/nxserver$ apt-cache policy libxcompshad3
libxcompshad3:
  Installed: (none)
  Candidate: 3.3.0-3-0ubuntu1
  Version table:
     3.3.0-3-0ubuntu1 0
        500 http://gb.archive.ubuntu.com karmic/universe Packages
     3.3.0-3-0ubuntu1~karmic1 0
        500 http://ppa.launchpad.net karmic/main Packages
rmallins@rmallins-desktop:/etc/nxserver$

full attempted install:

rmallins@rmallins-desktop:/etc/nxserver$ sudo apt-get install nxagent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  nvidia-kernel-common libxcompshad
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libxcompshad3
The following NEW packages will be installed
  libxcompshad3
The following packages will be upgraded:
  nxagent
1 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 2,126kB of archives.
After this operation, 340kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://gb.archive.ubuntu.com karmic/universe libxcompshad3 3.3.0-3-0ubuntu1 [25.4kB]
Get: 2 http://ppa.launchpad.net karmic/main nxagent 1:3.3.0-6-0ubuntu3~karmic1 [2,100kB]
Fetched 2,126kB in 2s (986kB/s)
Selecting previously deselected package libxcompshad3.
(Reading database ... 284527 files and directories currently installed.)
Unpacking libxcompshad3 (from .../libxcompshad3_3.3.0-3-0ubuntu1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libxcompshad3_3.3.0-3-0ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libXcompshad.so.3', which is also in package libxcompshad 0:3.2.0-1hardy1
Preparing to replace nxagent 3.2.0-1hardy1 (using .../nxagent_1%3a3.3.0-6-0ubuntu3~karmic1_amd64.deb) ...
Unpacking replacement nxagent ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libxcompshad3_3.3.0-3-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
rmallins@rmallins-desktop:/etc/nxserver$

ProblemType: Package
AptOrdering:
 libxcompshad3: Install
 nxagent: Install
 libxcompshad3: Configure
 nxagent: Configure
Architecture: amd64
Date: Tue Nov 10 22:18:22 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: trying to overwrite '/usr/lib/libXcompshad.so.3', which is also in package libxcompshad 0:3.2.0-1hardy1
Package: libxcompshad3 (not installed)
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: nxcompshad
Title: package libxcompshad3 (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/libXcompshad.so.3', which is also in package libxcompshad 0:3.2.0-1hardy1
Uname: Linux 2.6.31-14-generic x86_64

Revision history for this message
Robin Mallinson (rmallins) wrote :
Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you for opening this bug and helping make Ubuntu better. Looking at your description, I see that you are running Karmic, but

(1) trying to install a non-official package (nxagent, from a PPA);
(2) having, present in your system, an old version of libxcompshad, from Hardy.

Can you please tell us how (2) happened?

Changed in nxcompshad (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Robin Mallinson (rmallins) wrote : Re: [Bug 480339] Re: trying "sudo apt-get install nxagent" package libxcompshad3 not installed failed to install/upgrade: trying to overwrite /usr/lib/libXcompshad.so.3 , which is also in package libxcompshad 0:3.2.0-1hardy1

Thanks for the quick response! I've just looked in my notes and I added
libcompshad while following these instructions in Dec 07 the first time I
installed freeNX server:

http://ubuntuforums.org/showthread.php?t=620057

specifically with this apt command:

   sudo apt-get install expect openssh-server tcl8.4 nxlibs nxagent nxproxy
freenx

regards,
Robin

2009/11/11 C de-Avillez <email address hidden>

> Thank you for opening this bug and helping make Ubuntu better. Looking
> at your description, I see that you are running Karmic, but
>
> (1) trying to install a non-official package (nxagent, from a PPA);
> (2) having, present in your system, an old version of libxcompshad, from
> Hardy.
>
> Can you please tell us how (2) happened?
>
> ** Changed in: nxcompshad (Ubuntu)
> Importance: Undecided => Low
>
> ** Changed in: nxcompshad (Ubuntu)
> Status: New => Incomplete
>
> --
> trying "sudo apt-get install nxagent" package libxcompshad3 not installed
> failed to install/upgrade: trying to overwrite /usr/lib/libXcompshad.so.3
> , which is also in package libxcompshad 0:3.2.0-1hardy1
> https://bugs.launchpad.net/bugs/480339
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
C de-Avillez (hggdh2) wrote :

OK. You have to uninstall libcompshad -- this package was for Hardy, and it is obsoleted by libcompshad3. Only *after* uninstalling it you will be able to install libcompshad3.

As for nxagent... I am sorry, not supported. If you have an issue with it, you will have to contact the PPA authors.

Finally, I would like to stress the dangers of mixing packages from different versions, but I think the point is already made ;-) you might consider publishing (on the forum) the current steps to install nx as a help to others.

I am, now, closing INVALID this bug (as NOTABUG, actually). Please do not hesitate in reopening it if you do not agree with my action, or to open any new bugs you may find.

Changed in nxcompshad (Ubuntu):
status: Incomplete → 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.