apt install more than one version, how to remove repos?
robert rottermann
robert at redcor.ch
Sat Nov 7 08:35:54 UTC 2020
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 http://dell.archive.canonical.com/updates/ focal-dell public
# deb-src http://dell.archive.canonical.com/updates/ focal-dell public
deb http://dell.archive.canonical.com/updates/ focal-oem public
# deb-src http://dell.archive.canonical.com/updates/ focal-oem 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20201107/8dbea28c/attachment.html>
More information about the ubuntu-users
mailing list