[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 packages with the same file



Hello,

If I create a package with the same file than an other package which is already
installed on my computer, I can't install it. But when I download a package with
the same file than an other package which is already installed on my computer, I
can install it.

Now I prove it :

I have 2 packages with the same file :
-nvidia-glx
-xserver-xorg-core

The file is : /usr/lib/xorg/modules/extensions/libglx.so

We can see it doing :
$ apt-file list nvidia-glx
$ apt-file list xserver-xorg-core
or :
$ dpkg -c nvidia-glx_173.14.09-5_i386.deb
$ dpkg -c xserver-xorg-core_1.4.2-10.lenny2_i386.deb

When I try to install these two packages, it works :
$ sudo dpkg -i nvidia-glx_173.14.09-5_i386.deb
(Reading database ... 87860 files and directories currently installed.)
Preparing to replace nvidia-glx 173.14.09-5 (using
nvidia-glx_173.14.09-5_i386.deb) ...
Unpacking replacement nvidia-glx ...
Setting up nvidia-glx (173.14.09-5) ...
$ sudo dpkg -i xserver-xorg-core_1.4.2-10.lenny2_i386.deb
(Reading database ... 87860 files and directories currently installed.)
Preparing to replace xserver-xorg-core 2:1.4.2-10.lenny2 (using
xserver-xorg-core_1.4.2-10.lenny2_i386.deb) ...
Unpacking replacement xserver-xorg-core ...
Setting up xserver-xorg-core (2:1.4.2-10.lenny2) ...
Processing triggers for man-db ...

So, I create my own package with this file :
$ mkdir -p mypkg/DEBIAN
$ touch mypkg/DEBIAN/control
$ gvim mypkg/DEBIAN/control
$ mkdir -p mypkg/usr/lib/xorg/modules/extensions
$ ln -s foo.so mypkg/usr/lib/xorg/modules/extensions/libglx.so
$ sudo chown -R root:root mypkg/
$ dpkg-deb --build mypkg

The content of the DEBIAN/control file is :
Package: mypkg
Version: 20100810
Description: This is my package.
Architecture: i386
Maintainer: Mr. X

When I try to install this package, it doesn't works :
$ sudo dpkg -i mypkg.deb$ sudo dpkg -i mypkg.deb
(Reading database ... 87860 files and directories currently installed.)
Unpacking mypkg (from mypkg.deb) ...
dpkg: error processing mypkg.deb (--install):
 trying to overwrite `/usr/lib/xorg/modules/extensions/libglx.so', which is also
in package xserver-xorg-core
Errors were encountered while processing:
 mypkg.deb

Why can I install nvidia-glx package and I can't install mypkg package?

Thank you.

(the french messages are now translated into english)

Quoting Chris Jackson <c.jackson@shadowcat.co.uk>:

> spam.spam.spam.spam@free.fr wrote:
>
> > (sorry for the french messages, I don't want to change my locale but if you
> > consider it is very important to see the messages in english I can do it)
>
> It'd probably help. You don't have to (well, shouldn't have to)
> permanantly change your locale to do it, just:
>
>    export LC_ALL=en_US.UTF-8
>
> do your stuff, and
>
>    unset LC_ALL
>
> to go back to French.
>
> --
> Chris Jackson
> Shadowcat Systems Ltd.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 4C6151C6.7070809@shadowcat.co.uk">http://lists.debian.org/[🔎] 4C6151C6.7070809@shadowcat.co.uk
>
>



Reply to: