MX23.6 KDE x64 won't update CPP-12  [Solved]

Message
Author
User avatar
dolphin_oracle
Developer
Posts: 22675
Joined: Sun Dec 16, 2007 12:17 pm

Re: MX23.6 KDE x64 won't update CPP-12

#11 Post by dolphin_oracle »

this looks like maybe the deb didnt' download all the way, or some other source for file corruption. I don't think this is a dependency issue or anything like that.

Code: Select all

pkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/cpp-12_12.2.0-14+deb12u1_amd64.deb' (size=9767788) member 'data.tar': lzma error: compressed data is corrupt
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/cpp-12_12.2.0-14+deb12u1_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/12/cc1' to '/usr/lib/gcc/x86_64-linux-gnu/12/cc1.dpkg-new': unexpected end of file or stream
this is a tricky one. the main issue is that lots of things require cpp-12 to be installed, so apt purge isn't really an option.

try forcing it to download the deb again with

Code: Select all

sudo apt install --reinstall cpp-12
and post any output.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
timkb4cq
Developer
Posts: 3620
Joined: Wed Jul 12, 2006 4:05 pm

Re: MX23.6 KDE x64 won't update CPP-12

#12 Post by timkb4cq »

This is the relevant part

Code: Select all

dpkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/cpp-12_12.2.0-14+deb12u1_amd64.deb' (size=9767788) member 'data.tar': lzma error: compressed data is corrupt
The cached copy of that deb file on your drive is corrupt. You need to delete it

Code: Select all

sudo rm /var/cache/apt/archives/cpp-12_12.2.0-14+deb12u1_amd64.deb
so a new copy will be downloaded when you install it again.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

gafferb
Posts: 7
Joined: Sun Nov 28, 2021 12:44 pm

Re: MX23.6 KDE x64 won't update CPP-12  [Solved]

#13 Post by gafferb »

Followed timkb4cq advice and deleted the cache copy.
Then followed dolphin_oracle to reinstall cpp-12 and SUCCESS.
All updated without errors showing.
Many thanks for everyone's patience.

gafferb

Post Reply

Return to “Software / Configuration”