Announcement

Collapse
No announcement yet.

Kubuntu 20.10 won't boot because I replaced packages from 20.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kubuntu 20.10 won't boot because I replaced packages from 20.04

    I'm using Kubuntu 20.10 and Kodi auto-updated to the Kodi 19 mess. Trying to revert from Kodi 19 to 18.9 and after doing some stuff, I had the brilliant idea of getting the packages I was still missing in Kodi from another *ubuntu (Ubuntu Mate) install I have on my pc. So I grabbed them from the other distro with the commands:

    Code:
    $ apt download $(apt-rdepends kodi-inputstream-adaptive | grep -v "^ ")
    $ apt download $(apt-rdepends kodi-inputstream-rtmp | grep -v "^ ")
    $ apt download $(apt-rdepends kodi-pvr-iptvsimple | grep -v "^ ")
    This is the packages list I got:
    Code:
    gcc-10-base_10.2.0-5ubuntu1~20.04_amd64.deb
    kodi-pvr-iptvsimple_3.9.8-1_amd64.deb
    libc6_2.31-0ubuntu9.2_amd64.deb
    libcrypt1_1%3a4.4.10-10ubuntu4_amd64.deb
    libexpat1_2.2.9-1build1_amd64.deb
    libffi7_3.3-4_amd64.deb
    libgcc-s1_10.2.0-5ubuntu1~20.04_amd64.deb
    libgmp10_2%3a6.2.0+dfsg-4_amd64.deb
    libgnutls30_3.6.13-2ubuntu1.3_amd64.deb
    libhogweed5_3.5.1+really3.5.1-2_amd64.deb
    libidn2-0_2.2.0-2_amd64.deb
    libnettle7_3.5.1+really3.5.1-2_amd64.deb
    libp11-kit0_0.23.20-1ubuntu0.1_amd64.deb
    libp8-platform2_2.1.0.1+dfsg1-3build1_amd64.deb
    librtmp1_2.4+20151223.gitfa8646d.1-2build1_amd64.deb
    libstdc++6_10.2.0-5ubuntu1~20.04_amd64.deb
    libtasn1-6_4.16.0-2_amd64.deb
    libunistring2_0.9.10-2_amd64.deb
    zlib1g_1%3a1.2.11.dfsg-2ubuntu1.2_amd64.deb
    Then I did a sudo dpkg -i * to install them all.

    And by then I started to realize that the other *ubuntu I have installed on my pc is still in Ubuntu 20.04 and my Kubuntu is 20.10... Here's the terminal's log:

    Code:
    pemartins@pemartins-X55U: /media/pemartins/UBUNTU-MATE/home/pemartins/Downloads/aaa $ sudo dpkg -i *
    [sudo] password for pemartins: 
    dpkg: warning: downgrading gcc-10-base:amd64 from 10.2.0-13ubuntu1 to 10.2.0-5ubuntu1~20.04
    (Reading database ... 223907 files and directories currently installed.)
    Preparing to unpack gcc-10-base_10.2.0-5ubuntu1~20.04_amd64.deb ...
    De-configuring gcc-10-base:i386 (10.2.0-13ubuntu1) ...
    Unpacking gcc-10-base:amd64 (10.2.0-5ubuntu1~20.04) over (10.2.0-13ubuntu1) ...
    Selecting previously unselected package kodi-pvr-iptvsimple.
    Preparing to unpack kodi-pvr-iptvsimple_3.9.8-1_amd64.deb ...
    Unpacking kodi-pvr-iptvsimple (3.9.8-1) ...
    dpkg: warning: downgrading libc6:amd64 from 2.32-0ubuntu3.1 to 2.31-0ubuntu9.2
    Preparing to unpack libc6_2.31-0ubuntu9.2_amd64.deb ...
    De-configuring libc6:i386 (2.32-0ubuntu3.1) ...
    debconf: unable to initialize frontend: Dialog
    debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
    debconf: falling back to frontend: Readline
    Unpacking libc6:amd64 (2.31-0ubuntu9.2) over (2.32-0ubuntu3.1) ...
    Replaced by files in installed package libnss-nis:amd64 (3.1-0ubuntu4) ...
    Replaced by files in installed package libnss-nisplus:amd64 (1.3-0ubuntu4) ...
    dpkg: warning: downgrading libcrypt1:amd64 from 1:4.4.16-1ubuntu1 to 1:4.4.10-10ubuntu4
    Preparing to unpack libcrypt1_1%3a4.4.10-10ubuntu4_amd64.deb ...
    De-configuring libcrypt1:i386 (1:4.4.16-1ubuntu1) ...
    Unpacking libcrypt1:amd64 (1:4.4.10-10ubuntu4) over (1:4.4.16-1ubuntu1) ...
    Preparing to unpack libexpat1_2.2.9-1build1_amd64.deb ...
    Unpacking libexpat1:amd64 (2.2.9-1build1) over (2.2.9-1build1) ...
    Selecting previously unselected package libffi7:amd64.
    Preparing to unpack libffi7_3.3-4_amd64.deb ...
    Unpacking libffi7:amd64 (3.3-4) ...
    dpkg: warning: downgrading libgcc-s1:amd64 from 10.2.0-13ubuntu1 to 10.2.0-5ubuntu1~20.04
    Preparing to unpack libgcc-s1_10.2.0-5ubuntu1~20.04_amd64.deb ...
    De-configuring libgcc-s1:i386 (10.2.0-13ubuntu1) ...
    Unpacking libgcc-s1:amd64 (10.2.0-5ubuntu1~20.04) over (10.2.0-13ubuntu1) ...
    dpkg: warning: downgrading libgmp10:amd64 from 2:6.2.0+dfsg-6ubuntu1 to 2:6.2.0+dfsg-4
    Preparing to unpack libgmp10_2%3a6.2.0+dfsg-4_amd64.deb ...
    De-configuring libgmp10:i386 (2:6.2.0+dfsg-6ubuntu1) ...
    Unpacking libgmp10:amd64 (2:6.2.0+dfsg-4) over (2:6.2.0+dfsg-6ubuntu1) ...
    dpkg: warning: downgrading libgnutls30:amd64 from 3.6.15-4ubuntu2 to 3.6.13-2ubuntu1.3
    Preparing to unpack libgnutls30_3.6.13-2ubuntu1.3_amd64.deb ...
    De-configuring libgnutls30:i386 (3.6.15-4ubuntu2) ...
    Unpacking libgnutls30:amd64 (3.6.13-2ubuntu1.3) over (3.6.15-4ubuntu2) ...
    Selecting previously unselected package libhogweed5:amd64.
    Preparing to unpack libhogweed5_3.5.1+really3.5.1-2_amd64.deb ...
    Unpacking libhogweed5:amd64 (3.5.1+really3.5.1-2) ...
    dpkg: warning: downgrading libidn2-0:amd64 from 2.3.0-1 to 2.2.0-2
    Preparing to unpack libidn2-0_2.2.0-2_amd64.deb ...
    De-configuring libidn2-0:i386 (2.3.0-1) ...
    Unpacking libidn2-0:amd64 (2.2.0-2) over (2.3.0-1) ...
    Selecting previously unselected package libnettle7:amd64.
    Preparing to unpack libnettle7_3.5.1+really3.5.1-2_amd64.deb ...
    Unpacking libnettle7:amd64 (3.5.1+really3.5.1-2) ...
    dpkg: warning: downgrading libp11-kit0:amd64 from 0.23.21-2ubuntu0.1 to 0.23.20-1ubuntu0.1
    Preparing to unpack libp11-kit0_0.23.20-1ubuntu0.1_amd64.deb ...
    De-configuring libp11-kit0:i386 (0.23.21-2ubuntu0.1) ...
    Unpacking libp11-kit0:amd64 (0.23.20-1ubuntu0.1) over (0.23.21-2ubuntu0.1) ...
    Preparing to unpack libp8-platform2_2.1.0.1+dfsg1-3build1_amd64.deb ...
    Unpacking libp8-platform2:amd64 (2.1.0.1+dfsg1-3build1) over (2.1.0.1+dfsg1-3build1) ...
    dpkg: warning: downgrading librtmp1:amd64 from 2.4+20151223.gitfa8646d.1-2build2 to 2.4+20151223.gitfa8646d.1-2build1
    Preparing to unpack librtmp1_2.4+20151223.gitfa8646d.1-2build1_amd64.deb ...
    De-configuring librtmp1:i386 (2.4+20151223.gitfa8646d.1-2build2) ...
    Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) over (2.4+20151223.gitfa8646d.1-2build2) ...
    dpkg: warning: downgrading libstdc++6:amd64 from 10.2.0-13ubuntu1 to 10.2.0-5ubuntu1~20.04
    Preparing to unpack libstdc++6_10.2.0-5ubuntu1~20.04_amd64.deb ...
    De-configuring libstdc++6:i386 (10.2.0-13ubuntu1) ...
    Unpacking libstdc++6:amd64 (10.2.0-5ubuntu1~20.04) over (10.2.0-13ubuntu1) ...
    Preparing to unpack libtasn1-6_4.16.0-2_amd64.deb ...
    Unpacking libtasn1-6:amd64 (4.16.0-2) over (4.16.0-2) ...
    dpkg: warning: downgrading libunistring2:amd64 from 0.9.10-4 to 0.9.10-2
    Preparing to unpack libunistring2_0.9.10-2_amd64.deb ...
    De-configuring libunistring2:i386 (0.9.10-4) ...
    Unpacking libunistring2:amd64 (0.9.10-2) over (0.9.10-4) ...
    dpkg: warning: downgrading zlib1g:amd64 from 1:1.2.11.dfsg-2ubuntu4 to 1:1.2.11.dfsg-2ubuntu1.2
    Preparing to unpack zlib1g_1%3a1.2.11.dfsg-2ubuntu1.2_amd64.deb ...
    De-configuring zlib1g:i386 (1:1.2.11.dfsg-2ubuntu4) ...
    Unpacking zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu1.2) over (1:1.2.11.dfsg-2ubuntu4) ...
    dpkg: error processing package gcc-10-base:amd64 (--install):
    package gcc-10-base:amd64 10.2.0-5ubuntu1~20.04 cannot be configured because gcc-10-base:i386 is at a different version (10.2.0-13ubuntu1)
    dpkg: error processing package gcc-10-base:i386 (--install):
    package gcc-10-base:i386 10.2.0-13ubuntu1 cannot be configured because gcc-10-base:amd64 is at a different version (10.2.0-5ubuntu1~20.04)
    dpkg: dependency problems prevent configuration of kodi-pvr-iptvsimple:
    kodi-pvr-iptvsimple depends on kodi-api-pvr (= 5.10.3); however:
     Package kodi-api-pvr is not installed.
    
    dpkg: error processing package kodi-pvr-iptvsimple (--install):
    dependency problems - leaving unconfigured
    dpkg: error processing package libc6:amd64 (--install):
    package libc6:amd64 2.31-0ubuntu9.2 cannot be configured because libc6:i386 is at a different version (2.32-0ubuntu3.1)
    dpkg: error processing package libc6:i386 (--install):
    package libc6:i386 2.32-0ubuntu3.1 cannot be configured because libc6:amd64 is at a different version (2.31-0ubuntu9.2)
    dpkg: error processing package libcrypt1:amd64 (--install):
    package libcrypt1:amd64 1:4.4.10-10ubuntu4 cannot be configured because libcrypt1:i386 is at a different version (1:4.4.16-1ubuntu1)
    dpkg: error processing package libcrypt1:i386 (--install):
    package libcrypt1:i386 1:4.4.16-1ubuntu1 cannot be configured because libcrypt1:amd64 is at a different version (1:4.4.10-10ubuntu4)
    dpkg: dependency problems prevent configuration of libexpat1:amd64:
    libexpat1:amd64 depends on libc6 (>= 2.25); however:
     Package libc6:amd64 is not configured yet.
    
    dpkg: error processing package libexpat1:amd64 (--install):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libffi7:amd64:
    libffi7:amd64 depends on libc6 (>= 2.14); however:
     Package libc6:amd64 is not configured yet.
    
    dpkg: error processing package libffi7:amd64 (--install):
    dependency problems - leaving unconfigured
    dpkg: error processing package libgcc-s1:amd64 (--install):
    package libgcc-s1:amd64 10.2.0-5ubuntu1~20.04 cannot be configured because libgcc-s1:i386 is at a different version (10.2.0-13ubuntu1)
    dpkg: error processing package libgcc-s1:i386 (--install):
    package libgcc-s1:i386 10.2.0-13ubuntu1 cannot be configured because libgcc-s1:amd64 is at a different version (10.2.0-5ubuntu1~20.04)
    dpkg: error processing package libgmp10:amd64 (--install):
    package libgmp10:amd64 2:6.2.0+dfsg-4 cannot be configured because libgmp10:i386 is at a different version (2:6.2.0+dfsg-6ubuntu1)
    dpkg: error processing package libgmp10:i386 (--install):
    package libgmp10:i386 2:6.2.0+dfsg-6ubuntu1 cannot be configured because libgmp10:amd64 is at a different version (2:6.2.0+dfsg-4)
    dpkg: error processing package libgnutls30:amd64 (--install):
    package libgnutls30:amd64 3.6.13-2ubuntu1.3 cannot be configured because libgnutls30:i386 is at a different version (3.6.15-4ubuntu2)
    dpkg: error processing package libgnutls30:i386 (--install):
    package libgnutls30:i386 3.6.15-4ubuntu2 cannot be configured because libgnutls30:amd64 is at a different version (3.6.13-2ubuntu1.3)
    dpkg: dependency problems prevent configuration of libhogweed5:amd64:
    libhogweed5:amd64 depends on libc6 (>= 2.14); however:
     Package libc6:amd64 is not configured yet.
    libhogweed5:amd64 depends on libgmp10 (>= 2:6.0.0); however:
     Package libgmp10:amd64 is not configured yet.
    
    dpkg: error processing package libhogweed5:amd64 (--install):
    dependency problems - leaving unconfigured
    dpkg: error processing package libidn2-0:amd64 (--install):
    package libidn2-0:amd64 2.2.0-2 cannot be configured because libidn2-0:i386 is at a different version (2.3.0-1)
    dpkg: error processing package libidn2-0:i386 (--install):
    package libidn2-0:i386 2.3.0-1 cannot be configured because libidn2-0:amd64 is at a different version (2.2.0-2)
    dpkg: dependency problems prevent configuration of libnettle7:amd64:
    libnettle7:amd64 depends on libc6 (>= 2.14); however:
     Package libc6:amd64 is not configured yet.
    
    dpkg: error processing package libnettle7:amd64 (--install):
    dependency problems - leaving unconfigured
    dpkg: error processing package libp11-kit0:amd64 (--install):
    package libp11-kit0:amd64 0.23.20-1ubuntu0.1 cannot be configured because libp11-kit0:i386 is at a different version (0.23.21-2ubuntu0.1)
    dpkg: error processing package libp11-kit0:i386 (--install):
    package libp11-kit0:i386 0.23.21-2ubuntu0.1 cannot be configured because libp11-kit0:amd64 is at a different version (0.23.20-1ubuntu0.1)
    dpkg: dependency problems prevent configuration of libp8-platform2:amd64:
    libp8-platform2:amd64 depends on libc6 (>= 2.14); however:
     Package libc6:amd64 is not configured yet.
    libp8-platform2:amd64 depends on libgcc-s1 (>= 3.0); however:
     Package libgcc-s1:amd64 is not configured yet.
    
    dpkg: error processing package libp8-platform2:amd64 (--install):
    dependency problems - leaving unconfigured
    dpkg: error processing package librtmp1:amd64 (--install):
    package librtmp1:amd64 2.4+20151223.gitfa8646d.1-2build1 cannot be configured because librtmp1:i386 is at a different version (2.4+20151223.gitfa8646d.1-2build2)
    dpkg: error processing package librtmp1:i386 (--install):
    package librtmp1:i386 2.4+20151223.gitfa8646d.1-2build2 cannot be configured because librtmp1:amd64 is at a different version (2.4+20151223.gitfa8646d.1-2build1)
    dpkg: error processing package libstdc++6:amd64 (--install):
    package libstdc++6:amd64 10.2.0-5ubuntu1~20.04 cannot be configured because libstdc++6:i386 is at a different version (10.2.0-13ubuntu1)
    dpkg: error processing package libstdc++6:i386 (--install):
    package libstdc++6:i386 10.2.0-13ubuntu1 cannot be configured because libstdc++6:amd64 is at a different version (10.2.0-5ubuntu1~20.04)
    dpkg: dependency problems prevent configuration of libtasn1-6:amd64:
    libtasn1-6:amd64 depends on libc6 (>= 2.14); however:
     Package libc6:amd64 is not configured yet.
    
    dpkg: error processing package libtasn1-6:amd64 (--install):
    dependency problems - leaving unconfigured
    dpkg: error processing package libunistring2:amd64 (--install):
    package libunistring2:amd64 0.9.10-2 cannot be configured because libunistring2:i386 is at a different version (0.9.10-4)
    dpkg: error processing package libunistring2:i386 (--install):
    package libunistring2:i386 0.9.10-4 cannot be configured because libunistring2:amd64 is at a different version (0.9.10-2)
    dpkg: error processing package zlib1g:amd64 (--install):
    package zlib1g:amd64 1:1.2.11.dfsg-2ubuntu1.2 cannot be configured because zlib1g:i386 is at a different version (1:1.2.11.dfsg-2ubuntu4)
    dpkg: error processing package zlib1g:i386 (--install):
    package zlib1g:i386 1:1.2.11.dfsg-2ubuntu4 cannot be configured because zlib1g:amd64 is at a different version (1:1.2.11.dfsg-2ubuntu1.2)
    Errors were encountered while processing:
    gcc-10-base:amd64
    gcc-10-base:i386
    kodi-pvr-iptvsimple
    libc6:amd64
    libc6:i386
    libcrypt1:amd64
    libcrypt1:i386
    libexpat1:amd64
    libffi7:amd64
    libgcc-s1:amd64
    libgcc-s1:i386
    libgmp10:amd64
    libgmp10:i386
    libgnutls30:amd64
    libgnutls30:i386
    libhogweed5:amd64
    libidn2-0:amd64
    libidn2-0:i386
    libnettle7:amd64
    libp11-kit0:amd64
    libp11-kit0:i386
    libp8-platform2:amd64
    librtmp1:amd64
    librtmp1:i386
    libstdc++6:amd64
    libstdc++6:i386
    libtasn1-6:amd64
    libunistring2:amd64
    libunistring2:i386
    zlib1g:amd64
    zlib1g:i386
    Needless to say that I screwed the operating system so bad that now it doesn't even boot. In example every time I entered a command in the terminal right after that I got something like this and no action at all:
    Code:
    pemartins@pemartins-X55U: /media/pemartins/UBUNTU-MATE/home/pemartins/Downloads/aaa $ sudo apt install /media/pemartins/UBUNTU-MATE/home/pemartins/Downloads/aaa/kodi-pvr-iptvsimple_3.9.8-1_amd64.deb
    apt: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /lib/x86_64-linux-gnu/libsystemd.so.0)
    Is there a way to fix this mess?

    Thank you in advance for any help.

    #2
    I dunno. You downgraded some pretty major core Linux system libraries, like this big one one (and others):

    Code:
    dpkg: warning: downgrading libc6:amd64 from 2.32-0ubuntu3.1 to 2.31-0ubuntu9.2
    Have you tried recovery mode from the Grub menu and running sudo apt update and sudo apt full-upgrade ?
    This should want to re-install the current versions, unless you pinned the old versions to keep them from being upgraded back to the stock versions.


    The actual errors are mostly pertaining to the 32 bit versions of these packages (ie Steam or Wine related stuff) and are probably not effecting system booting but downgrading all those core system level libraries definitely is.


    You added a PPA providing the current release of Kodi. So, yes, the new version of it would become part of your normal updates. You still have to click 'upgrade all' or otherwise confirm things to do this, so it really isn't an 'auto-upgrade'.
    Either you could have used ppa-purge to revert back to the stock 18.8 that came from the official ubuntu repos, or 'pinned' the current version via Synaptic, Muon, or command-line.



    BUT, if you can run apt to update the system, it *should* want to install the current versions back.

    Comment


      #3
      Thank you for the help @claydoh, I really appreciate it.

      Recovery mode also does not boot, it always hangs soon after that message is displayed:
      Code:
      /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /lib/x86_64-linux-gnu/libsystemd.so.0)
      Is there a way to just unpack some deb into the system so this error does not occur, so I can run the recovery mode to update the system?

      Yep I added Kodi's ppa. I ran ppa-purge and reverted it but the issue with those 3 packages I mentioned remained, because of some needed dependencies for them not being available anywhere for the previous versions I needed. So I started messing around and... well, the result is at sight!

      Oh the auto-update I mention is because I use an AI that analyses the available updates and chooses according to its parameters. Or, in other words, I just run on the terminal the command:
      Code:
      sudo apt full-upgrade -y
      Last edited by pemartins; Feb 24, 2021, 03:19 PM.

      Comment


        #4
        IMO, the best and quickest way out is to do a fresh install of 20.04.2. Besides 20.10's EOL is this July. 20.04's is 2023 or 2025.

        It will take about 20 minutes to do fresh install and about 2 hrs or so to reconfigure it to your liking, adding and removing apps and such. How much time have you spent already? And, had you been using BTRFS it would have taken you only a couple minutes to restore to a working system.
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Thank you very much for the help @GreyGeek, very welcome as always.

          I ended up reinstalling 20.10 over because 20.04 has a huge wifi problem in my laptop and I have to replace NetworkManager with Wicd to get it working. I don't know if in the point releases it has been fixed but I just wanted to get things working and the fastest way was to just replace the system files and a couple of folders and files in /etc, and running a line to install my apps (I'm always updating it in case something like this happens). So I did that and now all is back to normal, exception made to some addons in Kodi that return the error on the log:
          Code:
          Error Contents: No module named Cryptodome.Cipher
          and I cannot figure out what could be missing. But I will not risk installing Kodi's official ppa again, I've had enough of that for sure.

          Comment


            #6
            probably one of your addons needs to be reinstalled, or the Cryptodome python bits are needed
            NBot sure if it needs to be an internal python module installed with the addons installer, or if it needs to be done using pip, or systemwide with apt.

            Code:
            $ apt search cryptodome
            Sorting... Done
            Full Text Search... Done
            python-pycryptodome/focal 3.6.1-2build4 amd64
            cryptographic Python library (Python 2)
            
            python-pycryptodome-doc/focal,focal 3.6.1-2build4 all
            cryptographic Python library (documentation)
            
            [COLOR=#ff0000][B]python3-pycryptodome[/B][/COLOR]/focal 3.6.1-2build4 amd64
            cryptographic Python library (Python 3)
            I suggest reinstalling one of the addons that needs this, it should be pulled in, and that way it will go into the place where Kodi sees it.

            Comment


              #7
              I tried installing python-pycryptodome both systemwide with apt and in user's folder with pip but no luck. It had something to do with going from Kodi 18.8 to 18.9 I guess, at least after installing Kodi 18.9 it installed python-pycryptodome as a dependency and the addons started working.

              With that said I had to install Kodi's ppa, install the specific version of Kodi 18.9 along with old packages of kodi-inputstream-adaptive, kodi-inputstream-rtmp and kodi-pvr-iptvsimple I got manually, remove the ppa and mark hold all Kodi's packages so no more 'bad luck' would come in the future.

              Comment

              Working...
              X