Announcement

Collapse
No announcement yet.

Updating neon

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

    Updating neon

    If you look over at KDE Neon's forum, as well as in other places, you might notice that one of the most common problems people are having with it is updating their systems from the command line. This is primarily because there is confusion on the correct apt commands to use. Many are using apt upgrade, which does not work as the literal text of the command would indicate on Ubuntu-based systems. While most *buntu users probably already know this, not everyone is coming from such an environment.

    The simple and effective fix for this is to use the same method used by Discover and other gui tools under the hood : Packagekit.
    Pkcon - the PackageKit console client is pretty simple and easy to use for keeping the system up-to-date.

    From Neon's FAQ:

    How do I Update to the Latest Software?

    KDE neon does continuous deployment of the latest KDE software which means there are nearly always new versions of our software to update to. We recommend using Plasma Discover's updater which appears in your panel:

    If you prefer to use the command line you can use the pkcon command:
    • pkcon refresh
    • pkcon update

    This will install all new packages and uses the same PackageKit code as Plasma Discover. Some uses of apt do not install new packages which makes it less suitable for KDE neon.
    https://phabricator.kde.org/T5930

    Note that the proper use of apt can still be used, of course.

    You do not need to use sudo with this command, as you will be prompted for the password when needed.

    The terminal output is nice, simple and tidy when it is downloading and installing.
    Last edited by claydoh; Jun 18, 2017, 07:04 PM.

    #2
    LOL thanks for this but...

    What is it ...that advertising about the weightloss program?

    Counting calories? noooo
    Eathing food you don't like? noooooo

    neat...welll nooooooo

    at first the refresh just stalled at 0 percent
    closed synaptic and did it again and after a couple of minutes there were, indeed, some nice neat lines saying that it was finished refreshing.

    update...neat...well...nooooo

    first it hit the libzip5 and then wanted to download a variety of stuff such as "runner" and some window refreshers and some ...new widgets...

    offers (N/y)...so I waited to be on the safe side and... after a minute or so, entered y and the permission requestor window did, indeed, pop and I duly entered my password and then...

    the cursor JUMPS BACK up into the lies of code and sits there for ...three minutes or so...and then says: Finished. Abort. It couldn't get past libzip5. lol

    So...I could see how, on a properly functioning system it would, indeed be a neat and tidy update and install but this was like watching a politically incorrect "Mexican jumping bean". lol

    woodthanksyouforthenewparadigmbut...nooooo...maybe afterlibzip5getsfixed...smoke

    Comment


      #3
      SURPRISINGLY... In reinstalling another package, Synaptic said that "ark" would be deleted. Well, that was what was going to be deleted before, along with Dolphin.

      So, being a glutton for punishment. I said ok and guess what...ark gone, broken package for libzip5 gone and back to libzip4. lol

      and...

      tried the pkcon refresh and it was all neat and tidy as you said.
      tried the pkcon update and, yes the cursor jumped back up in the list of things to be installed

      some "kde new stuff" some stuff for downloading, some plasma 5 stuff and..

      after prompting for the password but then...

      all neat and tidy. lol

      this new way is pretty spiffy!

      woodsmoke
      Last edited by woodsmoke; Jun 17, 2017, 11:11 PM.

      Comment


        #4
        My solution was simpler. As one who does package management from the CLI, I wrote simple word aliases for the most common commands and put apt and the repository commands in a sudoers command so I didn't have to enter my password every time.

        Code:
        [FONT=monospace][COLOR=#000000]alias aptlist='sudo apt list'[/COLOR]
        alias aptsearch='sudo apt search'
        alias aptshow='sudo apt show'
        alias instal='sudo apt install'
        alias remove='sudo apt remove'
        alias purge='sudo apt-get purge'
        alias update='sudo apt update; sudo apt list --upgradable'
        alias upgrade='sudo apt full-upgrade'
        alias aremove='sudo apt-get autoremove'
        alias dconfig='sudo dpkg --configure -s'
        [/FONT]
        but I'll try out the pkcon commands...
        Last edited by oshunluvr; Jun 19, 2017, 08:42 AM.

        Please Read Me

        Comment


          #5
          Sooooo, since Kontact is completely functional in Kubuntu Zesty I thought I'd SURELY also get Kontact to work with Neon dev stable.

          Ummm no...

          It is all a manual setup, lots of stuff to install

          Kontact "appears", and feeds work, but when trying to use the e-mail or calendar function one gets the usual suspect;

          "The akonadi personal management service is not operational"
          Clicking the "details" button does nothing but this is almost assuredly the long standing situation with the MSQLlite database.

          It "may" be that I have just not found the "one" thing to install that is necessary, and if anyone wants to offer a suggestion; I'll be glad to try it, but...Kontact is working in Kubu and I'll settle for that.

          woodsmoke

          Comment


            #6
            The first I'd heard about pkcon was from claydoh's and archon's postings. So, this afternoon when I got the update icon in my tray I tried it.

            Code:
            ~[B]$ sudo pkcon refresh         [/B]
            [sudo] password for jerry: 
            Refreshing cache              [=========================]         
            Loading cache                 [=========================]         
            Refreshing software list      [=========================]         
            Downloading packages          [=========================]         
            Running                       [=========================]         
            Finished                      [=========================]         
             Enabled                              [URL]http://us.archive.ubuntu.com/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://archive.canonical.com/ubuntu[/URL] xenial InRelease
             Disabled                             [URL]http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_16.04[/URL]  InRelease
             Enabled                              [URL]http://ppa.launchpad.net/cematinla/bisnext/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_16.04[/URL]  Release
             Enabled                              [URL]http://repo.steampowered.com/steam[/URL] precise InRelease
             Enabled                              [URL]http://ppa.launchpad.net/crass/btrfs-progs/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://ppa.launchpad.net/jonathonf/vlc/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://ppa.launchpad.net/obsproject/obs-studio/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://ppa.launchpad.net/openlp-core/release/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]http://ppa.launchpad.net/rvm/smplayer/ubuntu[/URL] xenial InRelease
             Enabled                              [URL]https://packages.cisofy.com/community/lynis/deb[/URL] xenial InRelease
            
            
            jerry@jerry-Aspire-V3-771:~[B]$ sudo pkcon update[/B]               
            Getting updates               [=========================]         
            Finished                      [=========================]         
            Loading cache                 [=========================]         
            Testing changes               [=========================]         
            Finished                      [=========================]         
            [COLOR=#ff0000][B]Fatal error:[/B][/COLOR] The following packages have unmet dependencies:
              qalc: Depends: libqalculate14 but it is not going to be installed
            
            [B]And there it ended.  So, I used old faithful, apt.[/B]
            
            jerry@jerry-Aspire-V3-771:~[B]$ sudo apt update[/B]
            Hit:1 [URL]http://repo.steampowered.com/steam[/URL] precise InRelease
            Hit:2 [URL]http://archive.canonical.com/ubuntu[/URL] xenial InRelease                                                                                               
            Hit:3 [URL]http://security.ubuntu.com/ubuntu[/URL] xenial-security InRelease                                                                                        
            Hit:4 [URL]http://us.archive.ubuntu.com/ubuntu[/URL] xenial InRelease                                                                                               
            Hit:5 [URL]http://ppa.launchpad.net/cematinla/bisnext/ubuntu[/URL] xenial InRelease                                            
            Ign:6 [URL]http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_16.04[/URL]  InRelease                                                    
            Hit:7 [URL]http://us.archive.ubuntu.com/ubuntu[/URL] xenial-updates InRelease                                                                             
            Hit:8 [URL]http://us.archive.ubuntu.com/ubuntu[/URL] xenial-backports InRelease                                                                           
            Hit:9 [URL]http://download.opensuse.org/repositories/home:/stevenpusser/xUbuntu_16.04[/URL]  Release                                                      
            Hit:10 [URL]http://ppa.launchpad.net/crass/btrfs-progs/ubuntu[/URL] xenial InRelease                                                 
            Hit:12 [URL]http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu[/URL] xenial InRelease           
            Hit:13 [URL]https://packages.cisofy.com/community/lynis/deb[/URL] xenial InRelease                              
            Hit:14 [URL]https://download.jitsi.org[/URL] unstable/ InRelease                                                
            Get:15 [URL]http://archive.neon.kde.org/user[/URL] xenial InRelease [31.1 kB]                                   
            Hit:16 [URL]http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu[/URL] xenial InRelease                                      
            Hit:17 [URL]http://ppa.launchpad.net/jonathonf/vlc/ubuntu[/URL] xenial InRelease          
            Hit:18 [URL]http://ppa.launchpad.net/obsproject/obs-studio/ubuntu[/URL] xenial InRelease  
            Hit:19 [URL]http://ppa.launchpad.net/openlp-core/release/ubuntu[/URL] xenial InRelease    
            Hit:20 [URL]http://ppa.launchpad.net/rvm/smplayer/ubuntu[/URL] xenial InRelease           
            Fetched 31.1 kB in 1s (16.1 kB/s)                  
            Reading package lists... Done
            Building dependency tree       
            Reading state information... Done
            9 packages can be upgraded. Run 'apt list --upgradable' to see them.
            
            
            jerry@jerry-Aspire-V3-771:~[B]$ sudo apt full-upgrade[/B]
            Reading package lists... Done
            Building dependency tree       
            Reading state information... Done
            Starting pkgProblemResolver with broken count: 4
            Starting 2 pkgProblemResolver with broken count: 4
            Investigating (0) qtvirtualkeyboard-plugin [ amd64 ] < 5.10.0+dfsg-0neon+16.04+xenial+build28 -> 5.10.0+dfsg-0neon+16.04+xenial+build29 > ( libs )
            Broken qtvirtualkeyboard-plugin:amd64 Breaks on qtvirtualkeyboard [ amd64 ] < 5.9.3+dfsg-0neon+16.04+xenial+build27 > ( oldlibs ) (< 5.10.0+dfsg-0neon+16.04+xenial+build29~ciBuild)
              Considering qtvirtualkeyboard:amd64 3 as a solution to qtvirtualkeyboard-plugin:amd64 8
              Added qtvirtualkeyboard:amd64 to the remove list
              Conflicts//Breaks against version 5.9.3-0neon+16.04+xenial+build26 for qtvirtualkeyboard but that is not InstVer, ignoring
              Conflicts//Breaks against version 5.9.3-0neon+16.04+xenial+build25 for qtvirtualkeyboard but that is not InstVer, ignoring
              Fixing qtvirtualkeyboard-plugin:amd64 via remove of qtvirtualkeyboard:amd64
            Investigating (0) libqalculate14 [ amd64 ] < none -> 2.2.1-0+16.04+xenial+build1 > ( libs )
            Broken libqalculate14:amd64 Breaks on libqalculate5v5 [ amd64 ] < 0.9.7-9.1 > ( universe/libs )
              Considering libqalculate5v5:amd64 8 as a solution to libqalculate14:amd64 1
              Holding Back libqalculate14:amd64 rather than change libqalculate5v5:amd64
            Investigating (0) qalc [ amd64 ] < 0.9.7-9.1 -> 2.2.1-0+16.04+xenial+build1 > ( math )
            Broken qalc:amd64 Depends on libqalculate14 [ amd64 ] < none -> 2.2.1-0+16.04+xenial+build1 > ( libs )
              Considering libqalculate14:amd64 1 as a solution to qalc:amd64 1
              Holding Back qalc:amd64 rather than change libqalculate14:amd64
            Investigating (0) libqalculate14-data [ amd64 ] < none -> 2.2.1-0+16.04+xenial+build1 > ( libs )
            Broken libqalculate14-data:amd64 Breaks on libqalculate5-data [ amd64 ] < 0.9.7-9.1 > ( universe/libs )
              Considering libqalculate5-data:amd64 2 as a solution to libqalculate14-data:amd64 0
              Holding Back libqalculate14-data:amd64 rather than change libqalculate5-data:amd64
             Try to Re-Instate (1) qalc:amd64
            Done
            Calculating upgrade... Done
            The following packages will be REMOVED:
              qtvirtualkeyboard
            The following packages have been kept back:
              qalc
            The following packages will be upgraded:
              docker-neon libvncclient1 libvncserver1 linux-doc linux-libc-dev linux-tools-common qml-module-qtquick-virtualkeyboard qtvirtualkeyboard-plugin
            8 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
            Need to get 12.9 MB of archives.
            After this operation, 63.5 kB of additional disk space will be used.
            Do you want to continue? [Y/n] 
            Get:1 [URL]http://us.archive.ubuntu.com/ubuntu[/URL] xenial-updates/main amd64 libvncclient1 amd64 0.9.10+dfsg-3ubuntu0.16.04.2 [54.2 kB]
            .....
            Get:8 [URL]http://archive.neon.kde.org/user[/URL] xenial/main amd64 qml-module-qtquick-virtualkeyboard amd64 5.10.0+dfsg-0neon+16.04+xenial+build29 [25.2 kB]
            Fetched 12.9 MB in 4s (2,836 kB/s)                            
            (Reading database ... 448964 files and directories currently installed.)
            Removing qtvirtualkeyboard (5.9.3+dfsg-0neon+16.04+xenial+build27) ...
            (Reading database ... 448962 files and directories currently installed.)
            Preparing to unpack .../docker-neon_0.0+p16.04+git20180329.0019-0_all.deb ...
            Unpacking docker-neon (0.0+p16.04+git20180329.0019-0) over (0.0+p16.04+git20180217.0045-0) ...
            ......
            Processing triggers for libc-bin (2.23-0ubuntu10) ...
            Processing triggers for man-db (2.7.5-1) ...
            Setting up docker-neon (0.0+p16.04+git20180329.0019-0) ...
            ....
            Setting up qtvirtualkeyboard-plugin (5.10.0+dfsg-0neon+16.04+xenial+build29) ...
            Processing triggers for libc-bin (2.23-0ubuntu10) ...
            Pkcon wasn't as good as I thought it would be.
            "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 am going to say that you got hit with packages reaching the repos as you were updating - I got those exact same updates a short time ago, but not all at once. The updater notification would not go away after the first update/full-upgrade , so I ran update/ full-upgrade until they stopped coming in, two more times actually.

              Comment


                #8
                That was my thought as well, but when I attempted it later I got the same results.
                qalc: Depends: libqalculate14 but it is not going to be installed
                What was hanging it up was a libqalculate14 conflict with libqalculate5v5 . When I uninstalled qcalc things worked properly again.

                I installed qcalc sometime ago but never used it, so uninstalling it was not a loss. I do ALL of my math work with the SageMath engine.
                "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


                  #9
                  Originally posted by oshunluvr View Post
                  Code:
                  [FONT=monospace][COLOR=#000000]alias aptlist='sudo apt list'[/COLOR]
                  alias aptsearch='sudo apt search'
                  alias aptshow='sudo apt show'
                  alias instal='sudo apt install'
                  alias remove='sudo apt remove'
                  alias purge='sudo apt-get purge'
                  alias update='sudo apt update; sudo apt list --upgradable'
                  alias upgrade='sudo apt full-upgrade'
                  alias aremove='sudo apt-get autoremove'
                  alias dconfig='sudo dpkg --configure -s'
                  [/FONT]
                  but I'll try out the pkcon commands...
                  Just FYI, you can use "purge" and "autoremove" with apt (uniformity is not a requirement, of course ).

                  Comment


                    #10
                    OK so I have been an "apt-get man for ,ever and this "pkcon" thing has me tweaked.

                    like this

                    Code:
                    vinny@vinny-Bonobo-Extreme:~$ pkcon refresh
                    Refreshing cache              [=========================]         
                    Loading cache                 [=========================]         
                    Downloading packages          [=========================]         
                    Running                       [=========================]         
                    Finished                      [                         ] (0%)  
                    Do you want to allow installing of unsigned software? [N/y] y
                    
                                                [=========================]         
                    Loading cache                 [=========================]         
                    Refreshing cache              [=========================]         
                    Loading cache                 [=========================]         
                    Downloading packages          [=========================]         
                    Running                       [=========================]         
                    Finished                      [                         ] (0%)  
                    Do you want to allow installing of unsigned software? [N/y] n
                    
                    The unsigned software will not be installed.
                                                [=========================]         
                    Loading cache                 [=========================]
                    if I keep entering Y it's a continual loop never ending until I enter N .

                    then

                    Code:
                    vinny@vinny-Bonobo-Extreme:~$ pkcon update
                    Getting updates               [=========================]         
                    Finished                      [=========================]         
                    Loading cache                 [=========================]         
                    Testing changes               [=========================]         
                    Finished                      [                         ] (0%)  
                    The following packages have to be updated:
                    kdeplasma-addons-data-4:5.12.4+p16.04+git20180407.0013-0.all   locale files for kdeplasma-addons
                    kwin-addons-4:5.12.4+p16.04+git20180407.0013-0.amd64   additional desktop and window switchers for KWin
                    muon-discover-4:5.12.3+p16.04+git20180407.0013-0.all   Transitional package (muon-discover -> plasma-discover)
                    muon-notifier-4:5.12.3+p16.04+git20180407.0013-0.all   Transitional package (muon-notifier -> plasma-discover-updater)
                    muon-updater-4:5.12.3+p16.04+git20180407.0013-0.all    Transitional package (muon-updater -> plasma-discover-updater)
                    plasma-dataengines-addons-4:5.12.4+p16.04+git20180407.0013-0.amd64     additional data engines for Plasma
                    plasma-discover-5.12.3+p16.04+git20180407.0013-0.amd64 Utility for browsing, installing and removing software
                    plasma-discover-common-5.12.3+p16.04+git20180407.0013-0.all    Discover software manager suite (common data files)
                    plasma-discover-private-5.12.3+p16.04+git20180407.0013-0.amd64 Private runtime libraries for the Discover suite
                    plasma-discover-updater-5.12.3+p16.04+git20180407.0013-0.amd64 Update manager for KDE
                    plasma-runners-addons-4:5.12.4+p16.04+git20180407.0013-0.amd64 additional runners for Plasma 5 and Krunner
                    plasma-wallpapers-addons-4:5.12.4+p16.04+git20180407.0013-0.amd64      additional wallpaper plugins for Plasma 5
                    Proceed with changes? [N/y] y
                    
                                                [=========================]         
                    Updating packages             [=========================]         
                    Waiting for authentication    [=========================]         
                    Loading cache                 [=========================]         
                    Downloading packages          [=========================]         
                    Running                       [=========================]         
                    Installing packages           [=========================]         
                    Committing changes            [=========================]         
                    Installing packages           [=========================]         
                    Committing changes            [=========================]         
                    Finished                      [                         ] (0%)  
                    (pkcon:19932): [COLOR=#ff0000]GLib-CRITICAL[/COLOR] **: Source ID 195 was not found when attempting to remove it
                                                [=========================]
                    but it seems to have updated/upgraded all anyway

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

                    Comment


                      #11
                      Originally posted by kubicle View Post
                      Just FYI, you can use "purge" and "autoremove" with apt (uniformity is not a requirement, of course ).
                      Roger. The initial aliases were built on apt-get before apt was around! I liked the output from apt list --upgradable so I partially integrated apt into the aliases after I discovered it. No reason it's like it is except sheer laziness

                      Please Read Me

                      Comment


                        #12
                        Originally posted by oshunluvr View Post
                        My solution was simpler. As one who does package management from the CLI, I wrote simple word aliases for the most common commands and put apt and the repository commands in a sudoers command so I didn't have to enter my password every time.

                        Code:
                        [FONT=monospace][COLOR=#000000]alias aptlist='sudo apt list'[/COLOR]
                        alias aptsearch='sudo apt search'
                        alias aptshow='sudo apt show'
                        [/FONT]
                        Is there any need/advantage for having sudo? Don't these apt commands work just as well without sudo?
                        Kubuntu 20.04

                        Comment


                          #13
                          Originally posted by vinnywright View Post
                          OK so I have been an "apt-get man for ,ever and this "pkcon" thing has me tweaked.

                          like this

                          if I keep entering Y it's a continual loop never ending until I enter N .

                          but it seems to have updated/upgraded all anyway

                          VINNY
                          That drove me crazy as well but you can use pkcon update -y to force the affirmative.
                          If you think Education is expensive, try ignorance.

                          The difference between genius and stupidity is genius has limits.

                          Comment

                          Working...
                          X