[SOLVED] Did I do this update/upgrade/autoremove properly?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I went to install ubuntu-restricted-extras and saw that I had extra kernels. So I did the update and then upgrade and then I used the suggested autoremove to remove the kernels. Here's the link:
I wasn't sure what the ...snap-confine was but went ahead anyway.
I did some things in the middle but at line #13 is the update. Then at line #42 is the upgrade. Then at line #160 is the auto-remove.
So is it all okay?
And I don't think it was from these commands but one day I had gst-plugins-bad in Synaptic and the next day I didn't. It couldn't be from this update/upgrade/autoremove that I lost it, could it?
. Why did you feel the need to install aptitude? It's getting very old hat now and unless you have some *very* specific requirements it is unnecessary if you have apt and dpkg. dpkg -l will do the job of the aptitude search command you used e.g.
Code:
aptitude search linux-image |grep '^i'
can be done with
Code:
dpkg -l '*linux-image*' | grep '^i'
. Although the system told you that you had the latest version when you tried to install ubuntu-restricted-extras, you persisted in trying to install it. Why?
. Out of interest, why were you wanting to install ubuntu-restricted-extras in the first place?
. Although it made no difference, right at the beginning you should have done your sudo apt-get update before your install. This ensures that you will be installing the latest version in the repos.
. No, gst-plugins-bad would not be linked to anything you did.
. As Ondoho mentioned, you can use autoremove on its own without the need to pass it specific package names.
advice: the "autoremove" action is there specifically so you don't have to type out all those packages.
snap is a new packaging format by canonical ltd, afaik.
as long as you stick with 16.04 LTS you won't have to worry about it (i think).
Thanks ondoho. So as far as using the "autoremove" do I just plop that
Code:
sudo apt autoremove
in at the end of this:
Code:
gregory@gregory-OptiPlex-GX520:~/Desktop$ sudo apt-get install ubuntu-restricted-extras
[sudo] password for gregory:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu-restricted-extras is already the newest version (65).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic
linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic linux-image-extra-4.4.0-64-generic linux-image-extra-4.4.0-66-generic
linux-image-extra-4.4.0-70-generic snap-confine
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
gregory@gregory-OptiPlex-GX520:~/Desktop$
Somebody here told me about it. As I recall researching it, it was a little more comprehensive (and safe) than apt.
Quote:
Originally Posted by hydrurga
It's getting very old hat now and unless you have some *very* specific requirements it is unnecessary if you have apt and dpkg. dpkg -l will do the job of the aptitude search command you used e.g.
Code:
aptitude search linux-image |grep '^i'
can be done with
Code:
dpkg -l '*linux-image*' | grep '^i'
I'll use that from now on.
Quote:
Originally Posted by hydrurga
. Although the system told you that you had the latest version when you tried to install ubuntu-restricted-extras, you persisted in trying to install it. Why?
I think someone slipped stupid pills into my coffee.
Quote:
Originally Posted by hydrurga
. Out of interest, why were you wanting to install ubuntu-restricted-extras in the first place?
I heard they would help with the video issue (the videos not playing properly--in the other thread).
.
Quote:
Originally Posted by hydrurga
Although it made no difference, right at the beginning you should have done your sudo apt-get update before your install. This ensures that you will be installing the latest version in the repos.
Makes sense. I'll be sure to do that next time.
Quote:
Originally Posted by hydrurga
. No, gst-plugins-bad would not be linked to anything you did.
Good.
Quote:
Originally Posted by hydrurga
. As Ondoho mentioned, you can use autoremove on its own without the need to pass it specific package names.
.
Thanks. Wasn't sure how to do that, though. Just plop the
Code:
sudo apt autoremove
after this:
Code:
gregory@gregory-OptiPlex-GX520:~/Desktop$ sudo apt-get install ubuntu-restricted-extras
[sudo] password for gregory:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu-restricted-extras is already the newest version (65).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic
linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic linux-image-extra-4.4.0-64-generic linux-image-extra-4.4.0-66-generic
linux-image-extra-4.4.0-70-generic snap-confine
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
gregory@gregory-OptiPlex-GX520:~/Desktop$
Somebody here told me about it. As I recall researching it, it was a little more comprehensive (and safe) than apt.
Aptitude was created to fill a niche that needed filling at the time. Apart from its wide-ranging search functions and a conflict resolution system that some consider superior to apt's, apt is where it's at and where the development work is being focussed. I would generally advise people to keep things simple and stick to using dpkg and the apt suite, unless there is a strong requirement for something that aptitude can do, which is unlikely for the normal user.
Quote:
Originally Posted by Gregg Bell
Thanks. Wasn't sure how to do that, though. Just plop the
Code:
sudo apt autoremove
after this:
Code:
gregory@gregory-OptiPlex-GX520:~/Desktop$ sudo apt-get install ubuntu-restricted-extras
[sudo] password for gregory:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu-restricted-extras is already the newest version (65).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic
linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic linux-image-extra-4.4.0-64-generic linux-image-extra-4.4.0-66-generic
linux-image-extra-4.4.0-70-generic snap-confine
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
gregory@gregory-OptiPlex-GX520:~/Desktop$
Aptitude was created to fill a niche that needed filling at the time. Apart from its wide-ranging search functions and a conflict resolution system that some consider superior to apt's, apt is where it's at and where the development work is being focussed. I would generally advise people to keep things simple and stick to using dpkg and the apt suite, unless there is a strong requirement for something that aptitude can do, which is unlikely for the normal user.
Yes.
Okay, great. Thanks for the explanation. It's apt for me from now on!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.