apt install more than one version, how to remove repos?
Ralf Mardorf
kde.lists at yahoo.com
Sat Nov 7 11:35:09 UTC 2020
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.
More information about the ubuntu-users
mailing list