package ngspice (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/ngspice/analog.cm', which is also in package libngspice-kicad 0.1-38~202211100131+14f42f805~ubuntu22.04.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ngspice (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 22.04, with all updates added:
mark@piranha:~$ sudo apt install ngspice
[sudo] password for mark:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
ngspice-doc
The following NEW packages will be installed:
ngspice
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 2,353 kB of archives.
After this operation, 7,972 kB of additional disk space will be used.
Get:1 http://
Fetched 2,353 kB in 2s (1,325 kB/s)
Selecting previously unselected package ngspice.
(Reading database ... 319532 files and directories currently installed.)
Preparing to unpack .../ngspice_
Unpacking ngspice (36+ds-1) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/usr/lib/
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
mark@piranha:~$
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: ngspice (not installed)
Uname: Linux 6.2.6-76060206-
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.5
AptOrdering:
ngspice:amd64: Install
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Thu Jul 6 11:21:08 2023
DpkgTerminalLog:
Preparing to unpack .../ngspice_
Unpacking ngspice (36+ds-1) ...
[1mdpkg:[0m error processing archive /var/cache/
trying to overwrite '/usr/lib/
ErrorMessage: trying to overwrite '/usr/lib/
Python3Details: /usr/bin/
PythonDetails: N/A
RelatedPackageV
dpkg 1.21.1ubuntu2.2
apt 2.4.9
SourcePackage: ngspice
Title: package ngspice (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/
UpgradeStatus: No upgrade log present (probably fresh install)
I just hit this too. It happens if you try to install ngspice with kicad installed.
It seems kicad can actually use the standard libngspice0 package, so the workaround is to
apt install --mark-auto libngspice0
apt install ngspice
I wonder why kicad needs its custom package. Maybe it should prefer libngspice0.