Re: apt upgrade problem with libgcc4 and libgcc-s4

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.hppa
Message-ID <[email protected]>
Hi Frank!

Long time no see.

On 3/9/20 8:33 PM, Frank Scheiner wrote:
> ```
> [...]
> Unpacking libgcc-s4:hppa (10-20200222-1) ...
> dpkg: error processing archive
> /var/cache/apt/archives/libgcc-s4_10-20200222-1_hppa.deb (--unpack):
>  trying to overwrite '/lib/hppa-linux-gnu/libgcc_s.so.4', which is also
> in package libgcc4:hppa 1:8.3.0-3
> Errors were encountered while processing:
>  /var/cache/apt/archives/libgcc-s4_10-20200222-1_hppa.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> [...]
> ```
> 
> ...which I was unable to solve with `apt`.
> (...)
> Did anybody else run into this issue?
There were some breaking changes in the gcc packages [1]. You can fix this
with apt with:

$ apt install -f -o Dpkg::Options::="--force-overwrite" [2]

Adrian

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950525
> [2] https://raphaelhertzog.com/2011/08/01/understanding-dpkgs-file-overwrite-error/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.