LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-01-2017, 11:43 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,992

Rep: Reputation: 175Reputation: 175
Did I do this update/upgrade/autoremove properly?


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:

https://hastebin.com/acenumibaf.sql

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?

Thanks.
 
Old 05-02-2017, 02:11 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,250
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
Quote:
Originally Posted by Gregg Bell View Post
So is it all okay?
yes.

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).
 
1 members found this post helpful.
Old 05-02-2017, 05:27 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
So, some questions and comments:

. 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.






.
 
1 members found this post helpful.
Old 05-02-2017, 10:53 AM   #4
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,992

Original Poster
Rep: Reputation: 175Reputation: 175
Quote:
Originally Posted by ondoho View Post
yes.

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$
And then it removes the kernels?
 
Old 05-02-2017, 11:02 AM   #5
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,992

Original Poster
Rep: Reputation: 175Reputation: 175
Quote:
Originally Posted by hydrurga View Post
So, some questions and comments:

. Why did you feel the need to install aptitude?
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 View Post
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 View Post
. 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 View Post

. 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 View Post
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 View Post

. No, gst-plugins-bad would not be linked to anything you did.
Good.

Quote:
Originally Posted by hydrurga View Post

. 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$
?

Thanks.
 
Old 05-02-2017, 11:25 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by Gregg Bell View Post
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 View Post
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$
?
Yes.

Last edited by hydrurga; 05-02-2017 at 11:26 AM.
 
1 members found this post helpful.
Old 05-02-2017, 11:01 PM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,992

Original Poster
Rep: Reputation: 175Reputation: 175
Quote:
Originally Posted by hydrurga View Post
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!
 
Old 05-03-2017, 01:30 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,250
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
Quote:
Originally Posted by Gregg Bell View Post
Code:
The following packages were automatically installed and are no longer required:
And then it removes the kernels?
all packages listed after this sentence will be removed with autoremove, always.
 
1 members found this post helpful.
Old 05-03-2017, 02:16 AM   #9
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,992

Original Poster
Rep: Reputation: 175Reputation: 175
Quote:
Originally Posted by ondoho View Post
all packages listed after this sentence will be removed with autoremove, always.
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slective update/upgrade in yum update -y command sysmicuser Linux - Newbie 4 09-02-2016 09:40 PM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 03:58 PM
X not starting up properly after upgrade, need help... Dizaplyn Slackware 1 11-14-2006 06:08 PM
Can't get DNS to resolve properly after update. indefinite Linux - Wireless Networking 2 01-25-2005 07:46 AM
How to upgrade BTTV properly ? sky260 Linux - Software 8 06-17-2004 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration