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

Bug #2026304 reported by Mark Phillips
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ngspice (Ubuntu)
New
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://archive.ubuntu.com/ubuntu jammy/universe amd64 ngspice amd64 36+ds-1 [2,353 kB]
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_36+ds-1_amd64.deb ...
Unpacking ngspice (36+ds-1) ...
dpkg: error processing archive /var/cache/apt/archives/ngspice_36+ds-1_amd64.deb (--unpack):
 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
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/ngspice_36+ds-1_amd64.deb
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-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.5
AptOrdering:
 ngspice:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Thu Jul 6 11:21:08 2023
DpkgTerminalLog:
 Preparing to unpack .../ngspice_36+ds-1_amd64.deb ...
 Unpacking ngspice (36+ds-1) ...
 dpkg: error processing archive /var/cache/apt/archives/ngspice_36+ds-1_amd64.deb (--unpack):
  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
ErrorMessage: 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
Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 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/x86_64-linux-gnu/ngspice/analog.cm', which is also in package libngspice-kicad 0.1-38~202211100131+14f42f805~ubuntu22.04.1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mark Phillips (mark-phillipsmarketing) wrote :
Revision history for this message
Tommie (serialattached) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.