Registered Member
|
Feel knowledgeable? Good. Come forth and teach a noob (me).
To refresh sources
To update system
sudo apt upgrade - updates system via installing and updating packages - new packages will be installed if required to satisfy dependencies, but existing packages will never be removed - packages that require the removal of other packages in order to update will be ignored sudo apt full-upgrade - updates system via installing, updating and removing* packages *if those packages have become unnecessary and/or prevent other packages from updating
Last edited by raddison on Mon Jun 19, 2017 2:15 pm, edited 1 time in total.
Proud to be powered by Plasma
|
|
Theoretically, You've got the perfect solution.
But: 'KDE neon's dependencies are not 100% trustworthy. If You do a full-upgrade, You might loose hundreds of packages, and end with an unusable desktop. This wouldn' t be Your fault. Therefore: After 'apt update', first do: 'apt upgrade', and look for problem-messages. Only if there are problems, You should first think about them and only afterwards try a 'apt full-upgrade'. An example may help: If You install: apt install packagekit-backend-aptcc this will delete 'plasma-discover' ("Software Center") from Your computer, but 'apt' won't tell You this. It should do. But it doesn't. That's what I meant (among other things) by saying: KDE neon's package dependencies are not 100% trustworthy. Summary: First 'upgrade'. 'full-upgrade' only after thinking, or in case of emergency. This advice is KDE neon specific. Under pure Debian, I wouldn't give this advice, for example. |
Registered Member
|
@NoNameNoBlame Thank you. You're a good advisor. Now I need a bit of time to tinker then I'll get back to you.
Proud to be powered by Plasma
|
Registered Member
|
Actually full-upgrade is the correct way to keep an Ubuntu based OS up to date
Here is why: say Neon (or Ubuntu or Kubuntu etc) has an update to the next version of Plasma. In this update a needed package is upgraded from foo-package1 to foo-package2. If you only run apt upgrade, it will NOT uninstall foo-package1, which will prevent foo-package2 from being installed, and preventing many other packages from being upgraded, and this could lead to a non-working desktop. Running a simple apt upgrade while not always a terrible thing is usually an unnecessary extra step. This full-upgrade (formerly called dist-upgrade) has been the correct and preferred method of updating since Ubuntu was created. The gui package managers are doing exactly this in the background .
claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
|
Registered Member
|
@claydoh Thank you. Now I'm even more confused than before. I need more time to tinker.
I wonder which is the "official" method that is recommended by Neon themselves. Provided there's such a method at all.
Proud to be powered by Plasma
|
Registered Member
|
Because we are using an Ubuntu base here, we follow what they do in this regard, as Neon does not touch or modify anything at this level. This is the case for most if not all Ubuntu based distros. Also, as mentioned, Discover is using the full-upgrade method under the hood when it is doing updates.
claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
|
Registered Member
|
That is a relevant statement.
Proud to be powered by Plasma
|
Registered Member
|
@claydoh I think sudo apt full-upgrade is the correct answer. Then again @NoNameNoBlame you also have a valid point.
Proud to be powered by Plasma
|
Registered Member
|
Nice! Thank you!
https://phabricator.kde.org/T5930 There you have it. No more discussions on how to update anymore, I guess.
Proud to be powered by Plasma
|
Registered Member
|
In my opinion, whether implicitly or explicitly or not at all endorsed by Neon themselves, the following 3 methods are all correct for updating the system from Konsole:
Method 1
Method 2
Method 3
Resources in a nutshell: http://manpages.ubuntu.com/manpages/xen ... get.8.html http://manpages.ubuntu.com/manpages/xen ... apt.8.html http://manpages.ubuntu.com/manpages/xen ... con.1.html https://phabricator.kde.org/T5930 https://neon.kde.org/faq#command-to-update Note: Unlike 1 and 2, 3 will work with or without sudo. Disclaimer: You should use whatever Neon officially recommended to use. Done.
Last edited by raddison on Mon Jun 19, 2017 6:43 pm, edited 2 times in total.
Proud to be powered by Plasma
|
Registered Member
|
Personally, I use a hybrid method:
- 'sudo apt update' to bring up the updater icon in the panel (aka system tray for ex-Windows users) - Once the icon is up, I close Konsole and launch the GUI updater (aka Discover) from aforementioned icon and proceed to the update proper - Once the system is reported to be up-to-date, I close Discover and reboot. It works for me. The subject has been exhausted. Sorry for some of the redundancies. I'll try to think first. If anything doesn't go as smoothly as expected (see NoNameNoBlame's statement), that's not my fault, of course. But it's the best possible free software indeed (Chris Fisher).
Proud to be powered by Plasma
|
Registered Member
|
I'm not quite done. Or am I?
Reinstalled the OS (neon-useredition-20170615-1018) from scratch then I tried to update from Konsole using:
Firstly, I wanna make a correction: pkcon update asked for my password. After the first update, seems it never asks for it again. This is the full Konsole output of the first update. If beauty is in the eyes of the beholder, then it sure doesn't look pretty to me
Then again, it doesn't have to be pretty just right. This particular line grabbed my attention
At the moment I'm not even sure if the system updated properly. Is that the way it's supposed to look like? At any rate, upon running the "pkcon refresh" and "pkcon update" again, I got this
Which doesn't necessarily meant much to me, so I ran
resulting in the following output
Next
I haven't yet apt autoremove those packs but I usually do. Opinions? PS: Consult the other thread viewtopic.php?f=309&t=140794 dealing with the on-screen keyboard icon vanishing from the bottom-left of the login screen (was there before the update)
Proud to be powered by Plasma
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot], Yahoo [Bot]