• upgrade 'issues' with gcc?

    From bad sector@21:1/5 to All on Sat Jun 10 07:41:45 2023
    Saturdays are 'buntu-Studio days for me. I try to do an update and it
    goes bonkers


    # apt-get update
    Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
    Hit:3 http://dl.google.com/linux/earth/deb stable InRelease
    Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
    Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
    Hit:6 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy
    InRelease
    Fetched 108 kB in 1s (87.9 kB/s)
    Reading package lists... Done
    W: http://dl.google.com/linux/earth/deb/dists/stable/InRelease: Key is
    stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

    So as far as I see the update went OK, with a note about a keyring
    No issues


    # apt-get dist-upgrade
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    g++-11 : Depends: gcc-11 (= 11.3.0-1ubuntu1~22.04.1) but 11.3.0-1ubuntu1~22.04 is installed
    gcc-11 : Depends: cpp-11 (= 11.3.0-1ubuntu1~22.04) but 11.3.0-1ubuntu1~22.04.1 is installed
    Depends: gcc-11-base (= 11.3.0-1ubuntu1~22.04) but 11.3.0-1ubuntu1~22.04.1 is installed
    Depends: libgcc-11-dev (= 11.3.0-1ubuntu1~22.04) but 11.3.0-1ubuntu1~22.04.1 is installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
    (or specify a solution).



    # apt --fix-broken install
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
    gcc-11
    Suggested packages:
    gcc-11-multilib gcc-11-doc gcc-11-locales
    The following packages will be upgraded:
    gcc-11
    1 upgraded, 0 newly installed, 0 to remove and 74 not upgraded.
    46 not fully installed or removed.
    Need to get 0 B/20.1 MB of archives.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n]

    Y

    (Reading database ... 469648 files and directories currently installed.) Preparing to unpack .../gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb ...
    Unpacking gcc-11 (11.3.0-1ubuntu1~22.04.1) over (11.3.0-1ubuntu1~22.04) ... dpkg-deb (subprocess): ZSTD_decompressStream error : Corrupted block
    detected

    dpkg-deb: error: <decompress> subprocess returned error exit status 2
    dpkg: error processing archive /var/cache/apt/archives/gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb (--unpack):
    cannot copy extracted data for
    './usr/lib/gcc/x86_64-linux-gnu/11/lto1' to '/usr/lib/gcc/x86_64-linux-gnu/11/lto1.dpkg-new': unexpected end of file
    or stream
    Errors were encountered while processing:
    /var/cache/apt/archives/gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I tried Muon and THAT's a total writeoff :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Easter@21:1/5 to bad sector on Sat Jun 10 07:37:33 2023
    bad sector wrote:
    I tried Muon and THAT's a total writeoff :-)

    Are you KDE/ Kub/ Neon?

    I only use Muon when I'm KDE; otherwise I like synaptic for a graphical
    package manager.

    --
    Mike Easter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Sat Jun 10 17:49:35 2023
    Am 10.06.2023 um 07:41:45 Uhr schrieb bad sector:

    dpkg-deb: error: <decompress> subprocess returned error exit status 2
    dpkg: error processing archive /var/cache/apt/archives/gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb
    (--unpack): cannot copy extracted data for './usr/lib/gcc/x86_64-linux-gnu/11/lto1' to '/usr/lib/gcc/x86_64-linux-gnu/11/lto1.dpkg-new': unexpected end of
    file or stream
    Errors were encountered while processing:
    /var/cache/apt/archives/gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    sudo apt clean
    sudo apt update
    sudo apt upgrade

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bad sector@21:1/5 to Mike Easter on Sat Jun 10 15:31:14 2023
    On 2023-06-10 10:37, Mike Easter wrote:
    bad sector wrote:
    I tried Muon and THAT's a total writeoff :-)

    Are you KDE/ Kub/ Neon?

    I have UbuntuStudio set up for KDE

    I only use Muon when I'm KDE; otherwise I like synaptic for a graphical package manager.

    I've had many issues with Muon so I usually do the

    apt-get update & apt-get dist-upgrade routine.

    Not very familiar with ubuntu or apt although I also use
    apt in Devuan (Tuesdays). Truth be told I'm actually pissed
    right off about snap, but for now what is, is :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bad sector@21:1/5 to Marco Moock on Sat Jun 10 15:24:45 2023
    On 2023-06-10 11:49, Marco Moock wrote:
    Am 10.06.2023 um 07:41:45 Uhr schrieb bad sector:

    dpkg-deb: error: <decompress> subprocess returned error exit status 2
    dpkg: error processing archive
    /var/cache/apt/archives/gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb
    (--unpack): cannot copy extracted data for
    './usr/lib/gcc/x86_64-linux-gnu/11/lto1' to
    '/usr/lib/gcc/x86_64-linux-gnu/11/lto1.dpkg-new': unexpected end of
    file or stream
    Errors were encountered while processing:
    /var/cache/apt/archives/gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    sudo apt clean
    sudo apt update
    sudo apt upgrade

    THANKS!

    At first it looked like another exercise in futility but after the last
    "Y" gcc got actually updated


    # apt clean

    # apt update
    Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
    Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
    Hit:3 http://dl.google.com/linux/earth/deb stable InRelease
    Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
    Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
    Hit:6 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy
    InRelease
    Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
    [672 kB]
    Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [41.5 kB]
    Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64
    DEP-11 Metadata [22.0 kB]
    Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
    [419 kB]
    Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [102 kB]
    Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64
    Packages [920 kB]
    Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64
    DEP-11 Metadata [274 kB]
    Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64
    DEP-11 Metadata [940 B]
    Get:15 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64
    DEP-11 Metadata [7,976 B]
    Get:16 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64
    DEP-11 Metadata [16.9 kB]
    Fetched 2,813 kB in 4s (648 kB/s)
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    75 packages can be upgraded. Run 'apt list --upgradable' to see them.
    W: http://dl.google.com/linux/earth/deb/dists/stable/InRelease: Key is
    stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.


    # apt upgrade
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    g++-11 : Depends: gcc-11 (= 11.3.0-1ubuntu1~22.04.1) but 11.3.0-1ubuntu1~22.04 is installed
    gcc-11 : Depends: cpp-11 (= 11.3.0-1ubuntu1~22.04) but 11.3.0-1ubuntu1~22.04.1 is installed
    Depends: gcc-11-base (= 11.3.0-1ubuntu1~22.04) but 11.3.0-1ubuntu1~22.04.1 is installed
    Depends: libgcc-11-dev (= 11.3.0-1ubuntu1~22.04) but 11.3.0-1ubuntu1~22.04.1 is installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
    (or specify a solution).



    # apt --fix-broken install
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
    gcc-11
    Suggested packages:
    gcc-11-multilib gcc-11-doc gcc-11-locales
    The following packages will be upgraded:
    gcc-11
    1 upgraded, 0 newly installed, 0 to remove and 74 not upgraded.
    46 not fully installed or removed.
    Need to get 20.1 MB of archives.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n]


    Y


    Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gcc-11
    amd64 11.3.0-1ubuntu1~22.04.1 [20.1 MB]
    Fetched 20.1 MB in 28s (723 kB/s)
    (Reading database ... 469648 files and directories currently installed.) Preparing to unpack .../gcc-11_11.3.0-1ubuntu1~22.04.1_amd64.deb ...
    Unpacking gcc-11 (11.3.0-1ubuntu1~22.04.1) over (11.3.0-1ubuntu1~22.04) ... Setting up gcc-11-base:amd64 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up libmysqlclient21:amd64 (8.0.33-0ubuntu0.22.04.2) ...
    Setting up mokutil (0.6.0-2~22.04.1) ...
    Setting up libfontembed1:amd64 (1.28.15-0ubuntu1.2) ...
    Setting up alsa-ucm-conf (1.2.6.3-1ubuntu1.6) ...
    Setting up linux-firmware (20220329.git681281e4-0ubuntu3.13) ... update-initramfs: Generating /boot/initrd.img-5.15.0-43-lowlatency
    I: The initramfs will attempt to resume from /dev/sda16
    I: (UUID=9c2a3965-758c-4e70-b2ab-b8af7bd54e98)
    I: Set the RESUME variable to override this.
    Setting up python3-problem-report (2.20.11-0ubuntu82.5) ...
    Setting up binutils-common:amd64 (2.38-4ubuntu2.2) ...
    Setting up libpq5:amd64 (14.8-0ubuntu0.22.04.1) ...
    Setting up libjavascriptcoregtk-4.0-18:amd64 (2.38.6-0ubuntu0.22.04.1) ... Setting up linux-libc-dev:amd64 (5.15.0-72.79) ...
    Setting up libctf-nobfd0:amd64 (2.38-4ubuntu2.2) ...
    Setting up libasan6:amd64 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up python3-apport (2.20.11-0ubuntu82.5) ...
    Setting up ca-certificates (20230311ubuntu0.22.04.1) ...
    Updating certificates in /etc/ssl/certs...
    rehash: warning: skipping ca-certificates.crt,it does not contain
    exactly one certificate or CRL
    19 added, 6 removed; done.
    Setting up libfreetype6:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
    Setting up python3-software-properties (0.99.22.7) ...
    Setting up libncurses6:amd64 (6.3-2ubuntu0.1) ...
    Setting up intel-media-va-driver:amd64 (22.3.1+dfsg1-1ubuntu2) ...
    Setting up libncursesw6:amd64 (6.3-2ubuntu0.1) ...
    Setting up libdpkg-perl (1.21.1ubuntu2.2) ...
    Setting up libwebp7:amd64 (1.2.2-2ubuntu0.22.04.1) ...
    Setting up ca-certificates-java (20190909ubuntu1.2) ...
    Installing new version of config file /etc/ca-certificates/update.d/jks-keystore ...
    Setting up libbinutils:amd64 (2.38-4ubuntu2.2) ...
    Setting up libwebpmux3:amd64 (1.2.2-2ubuntu0.22.04.1) ...
    Setting up libcupsfilters1:amd64 (1.28.15-0ubuntu1.2) ...
    Setting up libtsan0:amd64 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up libctf0:amd64 (2.38-4ubuntu2.2) ...
    Setting up cpp-11 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up cups-browsed (1.28.15-0ubuntu1.2) ...
    Setting up libwebpdemux2:amd64 (1.2.2-2ubuntu0.22.04.1) ...
    Setting up cups-filters-core-drivers (1.28.15-0ubuntu1.2) ...
    Setting up software-properties-common (0.99.22.7) ...
    Setting up apport (2.20.11-0ubuntu82.5) ...
    apport-autoreport.service is a disabled or a static unit, not starting it. Setting up libgcc-11-dev:amd64 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up libwebkit2gtk-4.0-37:amd64 (2.38.6-0ubuntu0.22.04.1) ...
    Setting up cups-filters (1.28.15-0ubuntu1.2) ...
    Setting up software-properties-qt (0.99.22.7) ...
    Setting up binutils-x86-64-linux-gnu (2.38-4ubuntu2.2) ...
    Setting up apport-kde (2.20.11-0ubuntu82.5) ...
    Setting up binutils (2.38-4ubuntu2.2) ...
    Setting up dpkg-dev (1.21.1ubuntu2.2) ...
    Setting up libstdc++-11-dev:amd64 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up gcc-11 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up g++-11 (11.3.0-1ubuntu1~22.04.1) ...
    Setting up openjdk-11-jre-headless:amd64
    (11.0.19+7~us1-0ubuntu1~22.04.1) ...
    Setting up openjdk-11-jre:amd64 (11.0.19+7~us1-0ubuntu1~22.04.1) ...
    Processing triggers for man-db (2.10.2-1) ...
    Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
    Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
    Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
    Processing triggers for hicolor-icon-theme (0.17-2) ...
    Processing triggers for cups (2.4.1op1-1ubuntu4.1) ...
    Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
    Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
    Updating certificates in /etc/ssl/certs...
    0 added, 0 removed; done.
    Running hooks in /etc/ca-certificates/update.d...

    done.
    done.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)