apt install more than one version, how to remove repos?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

apt install more than one version, how to remove repos?

robert rottermann

Hi friends


I was playing around on my ubuntu groovy, and tried to install some dell modules that exist for focal.

Tis is what I have done:

sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF
# deb-src http://dell.archive.canonical.com/updates/ focal-dell public
deb http://dell.archive.canonical.com/updates/ focal-somerville public
# deb-src http://dell.archive.canonical.com/updates/ focal-somerville public
deb http://dell.archive.canonical.com/updates/ focal-somerville-melisa public
# deb-src http://dell.archive.canonical.com/updates focal-somerville-melisa public
EOF'

Now I have a broken pakage (node.js).

When I try to fix it with:

root@kappi3:/etc/apt# apt --fix-broken install

I get:

The following additional packages will be installed:
  nodejs
The following packages will be upgraded:
  nodejs
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/18.3 MB of archives.
After this operation, 93.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 244037 files and directories currently installed.)
Preparing to unpack .../nodejs_12.19.0-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (12.19.0-deb-1nodesource1) over (12.18.2~dfsg-1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_12.19.0-deb-1nodesource1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/doc/nodejs/api/perf_hooks.html', which is also in package nodejs-doc 12.18.2~dfsg-1ubuntu2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/nodejs_12.19.0-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I already tried to remove the enties I added from /etc/apt

but it did not help.


thanks for yor support

robert




--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: apt install more than one version, how to remove repos?

ubuntu-users mailing list
On Sat, 7 Nov 2020 09:36:38 +0100, robert rottermann wrote:
>Unpacking nodejs
>(12.19.0-deb-1nodesource1) over (12.18.2~dfsg-1ubuntu2) ... dpkg:
>error processing archive
>/var/cache/apt/archives/nodejs_12.19.0-deb-1nodesource1_amd64.deb
>(--unpack):
>  trying to overwrite '/usr/share/doc/nodejs/api/perf_hooks.html',
> which is also
>in package nodejs-doc 12.18.2~dfsg-1ubuntu2

The current package from official repositories is

https://packages.ubuntu.com/focal/nodejs

10.19.0~dfsg-3ubuntu1 (and seemingly was 12.18.2~dfsg-1ubuntu2).

You try to install a package from a third party repository, since it
has got a higher version number. This package contains a file, that is
provided by another package from official Ubuntu repositories.

Either uninstall the package nodejs-doc, since it's just a recommended,
but not a hard dependency, just providing the documentation. After
that install the package nodejs from the third party repository and hope
that it doesn't break other dependencies. Check soname of libnode and
what needs libnode.

Or consider to remove the third party repository and upgrade to the
version provided by official repositories, so you don't need to remove
nodejs-doc.

What ever you will do, ensure that the package libnode64 fits to the
package nodejs.

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: apt install more than one version, how to remove repos?

Oliver Grawert
hi,
Am Samstag, den 07.11.2020, 12:35 +0100 schrieb Ralf Mardorf via
ubuntu-users:
>
> What ever you will do, ensure that the package libnode64 fits to the
> package nodejs.
>

if you want to overcome any library issues or conflicts permanently,
just do:

sudo snap install node --classic

(it is maintained by the openjs foundation themselves and also offers
channels from version 6 up to version 15 to pick from to your liking:
https://snapcraft.io/node )

ciao
        oli

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (201 bytes) Download Attachment