Announcement

Collapse
No announcement yet.

problems updating/upgrading

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

    [SOLVED] problems updating/upgrading

    Today after running the sudo apt update && sudo apt full-upgrade command, I ran into some trouble with unmet dependencies. I let it go for awhile, then just recently came back to it. The entire session is copied below. What went wrong? I am using the Neon dev edition with Kubuntu as the core--is there some incompatibility here?

    steve@steve-desktop:~$ sudo apt update && sudo apt full-upgrade
    [sudo] password for steve:
    Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
    Ign:2 http://dl.google.com/linux/earth/deb stable InRelease
    Hit:3 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial InRelease
    Hit:4 http://dl.google.com/linux/chrome/deb stable Release
    Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB]
    Hit:6 http://dl.google.com/linux/earth/deb stable Release
    Hit:7 http://pe.archive.ubuntu.com/ubuntu xenial InRelease
    Hit:8 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease
    Get:9 http://pe.archive.ubuntu.com/ubuntu xenial-updates InRelease [95,7 kB]
    Get:12 http://archive.neon.kde.org/stable xenial InRelease [8.878 B]
    Get:13 http://pe.archive.ubuntu.com/ubuntu xenial-backports InRelease [92,2 kB]
    Get:14 http://archive.neon.kde.org/stable xenial/main amd64 Packages [867 kB]
    Get:15 http://archive.neon.kde.org/stable xenial/main i386 Packages [99,6 kB]
    Get:16 http://archive.neon.kde.org/stable xenial/main all Packages [99,8 kB]
    Fetched 1.357 kB in 3s (397 kB/s)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    38 packages can be upgraded. Run 'apt list --upgradable' to see them.
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
    libkf5messagecomposer5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
    libkf5messagecore5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
    libkf5messagelist5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
    libkf5templateparser5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
    E: Unmet dependencies. Try using -f.
    steve@steve-desktop:~$ sudo apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    digikam-data ffmpegthumbs libkexiv2-11v5 libkf5kaddressbookimportexport5
    libkf5kdgantt2-5 libkf5sane5 liblensfun-data liblensfun0 libokularcore7
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
    kf5-messagelib-data libkf5messageviewer5
    The following packages will be upgraded:
    kf5-messagelib-data libkf5messageviewer5
    2 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
    140 not fully installed or removed.
    Need to get 0 B/4.322 kB of archives.
    After this operation, 56,3 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 261522 files and directories currently installed.)
    Preparing to unpack .../kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb ...
    Unpacking kf5-messagelib-data (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
    dpkg: error processing archive /var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb (--unpack):
    trying to overwrite '/usr/share/messageviewer/defaultthemes/5.2/kmail_default.desktop', which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
    Preparing to unpack .../libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb ...
    Unpacking libkf5messageviewer5:amd64 (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
    dpkg: error processing archive /var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb (--unpack):
    trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/plugins/messageviewer/messageviewer_defaultgrantleeheaderstyleplugin.so' , which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
    Processing triggers for libc-bin (2.23-0ubuntu4) ...
    Errors were encountered while processing:
    /var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb
    /var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    #2
    There should be new builds in dev-edition /stable to fix this now, or on the way as breaks/replaces for the moved file have been added in git.

    By the way, /stable means that the packages are build from the KDE 'stable' git branches which are potential fixes to released versions (except frameworks that doesn't have those). This does not imply they are without error or the packaging of that code is 'stable' in itself.
    On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

    Comment


      #3
      yes I have been getting a similer situation ,,,,,,,,,for a week or so now Gwenview has been held back form "dist-upgrading"

      last night I got this ,,,,,,,,,

      Code:
      Calculating upgrade... Done
      The following packages will be [COLOR=#ff0000]REMOVED:
        digikam digikam-private-libs libmarblewidget-qt5-25 showfoto[/COLOR]
      The following NEW packages will be installed:
        libmarblewidget-qt5-26 mkusb-common
      [COLOR=#ff8c00]The following packages have been kept back:
        gwenview[/COLOR]
      The following packages will be upgraded:
        gstreamer0.10-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-x imagemagick imagemagick-6.q16 imagemagick-common
        libastro-dev libastro1 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libimage-magick-perl libimage-magick-q16-perl libmagick++-6.q16-5v5
        libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra libmagickwand-6.q16-2 libmarble-dev libpulse-dev libpulse-mainloop-glib0 libpulse0 libpulsedsp libpython2.7
        libpython2.7-minimal libpython2.7-stdlib libpython3.5 libpython3.5-minimal libpython3.5-stdlib marble marble-plugins marble-qt mkusb pulseaudio
        pulseaudio-module-bluetooth pulseaudio-module-x11 pulseaudio-utils python2.7 python2.7-minimal python3.5 python3.5-minimal tar
      42 upgraded, 2 newly installed, 4 to remove and 1 not upgraded.
      210 not fully installed or removed.
      Need to get 4,293 kB/23.0 MB of archives.
      After this operation, 49.8 MB disk space will be freed.
      Do you want to continue? [Y/n] n
      ,,,,,,,ya ,,not trying to get digikam gone so it's the n key .

      however , a "upgrade" will go through withought removing any thing ,,,,,,,but holds back more.

      Code:
      Calculating upgrade... Done
      [COLOR=#ff8c00]The following packages have been kept back:
        gwenview libastro-dev libastro1 libmarble-dev marble marble-plugins marble-qt mkusb[/COLOR]
      The following packages will be upgraded:
        gstreamer0.10-plugins-good gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-x gtk3-engines-breeze imagemagick
        imagemagick-6.q16 imagemagick-common kaccounts-integration libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libimage-magick-perl libimage-magick-q16-perl
        libkaccounts1 libmagick++-6.q16-5v5 libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra libmagickwand-6.q16-2 libpulse-dev libpulse-mainloop-glib0 libpulse0 libpulsedsp
        libpython2.7 libpython2.7-minimal libpython2.7-stdlib libpython3.5 libpython3.5-minimal libpython3.5-stdlib pulseaudio pulseaudio-module-bluetooth
        pulseaudio-module-x11 pulseaudio-utils python2.7 python2.7-minimal python3.5 python3.5-minimal tar
      38 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
      210 not fully installed or removed.
      Need to get 4,583 kB/19.3 MB of archives.
      After this operation, 481 kB of additional disk space will be used.

      this is packaging Quirks and some of the fun of running a /dev kinda thing ,,,,,,,,,I will opt to do the "upgrade" tonight and see what a "dist-upgrade" will say tomorrow ,,,,or the next day , or the next



      VINNY
      i7 4core HT 8MB L3 2.9GHz
      16GB RAM
      Nvidia GTX 860M 4GB RAM 1152 cuda cores

      Comment


        #4
        I ran into something similar and the full-upgrade died, leaving the lock in place. I deleted the lock and ran
        dpkg --configure -a
        apt-get -f install
        repeatedly until they did all they could.
        I opened Muon and noticed several packages still in the upgrade tab. I installed them using Muon and then repeated the two commands above and things straightened out.
        "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
          I can't seem to get past this:

          The following packages have unmet dependencies:
          libkf5messagecomposer5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
          libkf5messagecore5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
          libkf5messagelist5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
          libkf5templateparser5 : Depends: kf5-messagelib-data (= 4:16.08.3+p16.04+git20161122.1155-0) but 4:16.08.2+p16.04+git20161117.2357-0 is installed
          E: Unmet dependencies. Try using -f.

          I've tried everything suggested, but nothing changes. I've got some 200+ files waiting to be correctly upgraded, but don't know how to get the right dependencies for the five files listed.

          Comment


            #6
            Using muon or synaptic mark the older version for deletion and then click apply.
            Then mark the newer file for installation and apply it. Rinse and repeat.
            "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


              #7
              I used Synaptic. It identified the packages in question as broken. I fixed them, the legend at the bottom said the dependencies were met. However, could not upgrade, neither using Synaptic nor using the Konsole. Why won't it upgrade? According to Muon, the kdepim library has two versions--but I tried to force the correct the correct one but it wouldn't do it. I'm not sure I know how to delete properly using Muon--all I get the is the archive, not the individual versions. I must be doing something wrong.

              Comment


                #8
                today looks better for me ,,,,,,,,,I will do this one .

                Code:
                Calculating upgrade... Done
                The following packages will be REMOVED:
                  digikam-private-libs libkf5kipi31.0.0 libmarblewidget-qt5-25
                The following NEW packages will be installed:
                  libkf5kipi32.0.0 libmarblewidget-qt5-26 mkusb-common
                The following packages will be upgraded:
                  digikam digikam-data extra-cmake-modules gwenview kdeplasma-addons-data kipi-plugins kipi-plugins-common kwin-addons libastro-dev libastro1 libmarble-dev
                  libokular5core7 marble marble-plugins marble-qt mkusb neon-desktop okular okular-extra-backends plasma-dataengines-addons plasma-runners-addons
                  plasma-wallpapers-addons plasma-widgets-addons showfoto
                24 upgraded, 3 newly installed, 3 to remove and 0 not upgraded.
                Need to get 2,584 kB/84.8 MB of archives.
                After this operation, 22.8 MB disk space will be freed.
                Do you want to continue? [Y/n]
                @oldgeek do a
                Code:
                sudo apt-get update ; sudo apt-get -f install
                see what happens (post if errors) .

                if no errors do
                Code:
                sudo apt-get upgrade
                (post if errors) if no errors then do a
                Code:
                sudo apt-get dist-upgrade
                VINNY
                i7 4core HT 8MB L3 2.9GHz
                16GB RAM
                Nvidia GTX 860M 4GB RAM 1152 cuda cores

                Comment


                  #9
                  I ran both; sudo apt-get update gave me a list with no problems. However, sudo apt-get -f install gave me the same error messages I've been getting since I first tried to upgrade everything yesterday.

                  steve@steve-desktop:~$ sudo apt-get -f install
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  Correcting dependencies... Done
                  The following packages were automatically installed and are no longer required:
                  digikam-data ffmpegthumbs libkexiv2-11v5 libkf5kaddressbookimportexport5
                  libkf5kdgantt2-5 libkf5sane5 liblensfun-data liblensfun0 libokularcore7
                  Use 'sudo apt autoremove' to remove them.
                  The following additional packages will be installed:
                  kf5-messagelib-data libkf5messageviewer5
                  The following packages will be upgraded:
                  kf5-messagelib-data libkf5messageviewer5
                  2 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
                  5 not fully installed or removed.
                  Need to get 0 B/4.322 kB of archives.
                  After this operation, 56,3 kB of additional disk space will be used.
                  Do you want to continue? [Y/n] y
                  (Reading database ... 261612 files and directories currently installed.)
                  Preparing to unpack .../kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb ...
                  Unpacking kf5-messagelib-data (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
                  dpkg: error processing archive /var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb (--unpack):
                  trying to overwrite '/usr/share/messageviewer/defaultthemes/5.2/kmail_default.desktop', which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
                  Preparing to unpack .../libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb ...
                  Unpacking libkf5messageviewer5:amd64 (4:16.08.3+p16.04+git20161122.1155-0) over (4:16.08.2+p16.04+git20161117.2357-0) ...
                  dpkg: error processing archive /var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb (--unpack):
                  trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/plugins/messageviewer/messageviewer_defaultgrantleeheaderstyleplugin.so' , which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0
                  Processing triggers for libc-bin (2.23-0ubuntu4) ...
                  Errors were encountered while processing:
                  /var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161122.1155-0_all.deb
                  /var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 2.1155-0_amd64.deb
                  E: Sub-process /usr/bin/dpkg returned an error code (1)

                  Comment


                    #10
                    Usually the two options:
                    sudo apt -f install
                    sudo dpkg --configure -a

                    are run together as a pair, and repeated until things clear up, or the same error msg repeats with each one and no progress is made.

                    Just curious -- what does sudo apt-cache stats show?

                    And, after doing sudo apt-cache -g what does the two cleanup commands do?
                    "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


                      #11
                      The first two options keep returning the same error message as shown above; no progress is made. The command 'sudo apt-cache -g' gives me the following error message: E: Command line option 'g' [from -g] is not understood in combination with the other options. The command 'sudo apt-cache stats' gives me this:

                      Total package names: 71881 (1.438 k)
                      Total package structures: 110396 (4.857 k)
                      Normal packages: 81582
                      Pure virtual packages: 1916
                      Single virtual packages: 9085
                      Mixed virtual packages: 2817
                      Missing: 14996
                      Total distinct versions: 95850 (7.668 k)
                      Total distinct descriptions: 150312 (3.607 k)
                      Total dependencies: 729953/225290 (18,2 M)
                      Total ver/file relations: 64343 (1.544 k)
                      Total Desc/File relations: 19240 (462 k)
                      Total Provides mappings: 21733 (522 k)
                      Total globbed strings: 159853 (3.542 k)
                      Total slack space: 37,3 k
                      Total space accounted for: 42,3 M
                      Total buckets in PkgHashTable: 50503
                      Unused: 12134
                      Used: 38369
                      Utilization: 75.9737%
                      Average entries: 2.87722
                      Longest: 15
                      Shortest: 1
                      Total buckets in GrpHashTable: 50503
                      Unused: 12134
                      Used: 38369
                      Utilization: 75.9737%
                      Average entries: 1.87341
                      Longest: 8
                      Shortest: 1

                      Comment


                        #12
                        I used Muon to upgrade everything, but got an error message for these three archives:

                        /var/cache/apt/archives/kf5-messagelib-data_4%3a16.08.3+p16.04+git20161123.2239-0_all.deb
                        trying to overwrite '/usr/share/messageviewer/defaultthemes/5.2/kmail_default.desktop', which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0

                        /var/cache/apt/archives/libkf5messageviewer5_4%3a16.08.3+p16.04+git2016112 3.2239-0_amd64.deb
                        trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/plugins/messageviewer/messageviewer_defaultgrantleeheaderstyleplugin.so' , which is also in package kdepim-addons 16.08.2+p16.04+git20161118.0531-0

                        /var/cache/apt/archives/kdepim-addons_16.08.3+p16.04+git20161124.0038-0_amd64.deb
                        trying to overwrite '/usr/lib/x86_64-linux-gnu/qt5/plugins/messageviewer/messageviewer_standardsheaderstyleplugin.so', which is also in package libkf5messageviewer5

                        Everything else pending seems to have been upgraded.

                        Comment


                          #13
                          You could go nuclear

                          sudo apt-get -o Dpkg::Options::="--force-overwrite" install kf5-messagelib-data libkf5messageviewer5 kdepim-addons

                          Comment


                            #14
                            It worked! And a happy thanksgiving day to you, if you're American. If not, thanks anyway.

                            Comment


                              #15
                              Originally posted by sasha View Post
                              You could go nuclear

                              sudo apt-get -o Dpkg::Options::="--force-overwrite" install
                              Mmmmm nice one ,,,,,,,saving this.

                              VINNY
                              i7 4core HT 8MB L3 2.9GHz
                              16GB RAM
                              Nvidia GTX 860M 4GB RAM 1152 cuda cores

                              Comment

                              Working...
                              X