LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-14-2015, 11:56 AM   #1
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
How to get a newer version of linux-image included when running aptitude update


I am running Debian testing/unstable with a 3.18-8.dmz.1-liquorix-amd64 kernel. I have been using liquorix kernels for a few years now and this very minor annoyance has only started very recently.

I do daily updates using the command
Code:
sudo aptitude update
following that I use
Code:
sudo aptitude safe-upgrade
whenever a newer version of the linux-headers package is available, it is listed amongst the packages to be installed in the upgrade (I am prompted for a yes/no if more than one package is ready for upgrading). The same used to be true for the linux-image package. Now I have to do it manually even though the new linux-headers package shows up on the list of packages that will be upgraded. I have a feeling that I need to edit one of the files in /etc/apt/apt.conf.d Any suggestions would be greatly appreciated.
jdk
 
Old 03-14-2015, 12:24 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You should use
1. apt-get update
2. apt-get dist-upgrade

You can clean your system with
1. apt-get autoclean
2. apt-get autoremove

Last edited by Keruskerfuerst; 03-14-2015 at 01:29 PM.
 
Old 03-14-2015, 12:27 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Could you not just use "upgrade" rather than "safe-upgrade"? I run Sid and use "apt-get dist-upgrade" so don't have any experience with aptitude though, sorry.
 
Old 03-14-2015, 03:37 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
There is really no real difference between aptitude safe-upgrade and apt-get upgrade. They upgrade packages that stand alone, needed no other packages to be removed or added.

aptitude safe-upgrade will occasionally remove a package due to it no longer being used at all for any purpose but this is rare.

apt-get dist-upgrade upgrades packages that need additional packages installed or packages removed.

aptitude full-upgrade does the same thiing.

Failure to run either of those commands over a long period of time will do nothing to improve your system and may well damage it eventurally.

Get your package list updated with aptitude update as normal and see what aptitude full-upgrade will offer. Should get you the new header package.

There is nothing wrong with using aptitude. I am a newer user and used to apt-get and use it. Aptitude is an older application that is much better at dealing with dependancy issues but this function is, for the most part no longer needed. It also has a huge stable of extremely useful commands for dealing with all sorts of package management issues.

apt-get is limited in these areas but the functionality is available through, particularly, apt-mark and apt-cache. This makes it easier for a new user to learn the apt-get commands than the aptitude commands but also leaves them, many times, with no clue that there are so many useful tools because you will not see them listed with apt-get as you will if you look at a list of aptitude functions such as the man pages for apt-get and aptitude.

While most users, I think, have moved on to using apt-get, aptitude is still offered because;
A>it has a large user base
B>does the same jobs just as well

But, regardless of which you choose to use it is important to keep all packages in your install upgraded. This can only be done by using dist-upgrade or full-upgrade at least occasionally.
 
Old 03-15-2015, 01:18 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Thanks to all for your efforts. Let me repeat that what I described in my first post of this thread always automatically updated to a newly appearing linux-image package and still automatically updates the linux-headers package. I have not varied my update method and have always used safe-upgrade. I do not want and do not need to use dist-upgrade. AFAIK this problem has nothing to do with the aptitude vs. apt-get divide nor the safe-upgrade vs. dist-upgrade divide. At this time I can always install a newly appearing kernel with the command
Code:
sudo aptitude install  linux-image-<name of new kernel>-liquorix-amd64
I am alerted to the existence of a new kernel when the linux-headers package is updated during the safe-upgrade. As I said earlier, I believe the solution lies in editing one of the files in the /etc/apt/apt.conf.d folder.
jdk
 
Old 03-15-2015, 04:50 AM   #6
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
You need to install linux-image-<your_architecture>. That's simply an empty package that always depends on the latest version of linux-image-<kernel_version>-<architecture>, which contains the actual kernel. This way you won't need to manually install every new kernel, but it will be automatically upgraded each time a new version arrives.

Edit: I'm not sure about the name of the package you need if you're using liquorix as I don't use it, but I'm sure there is an equivalent package for the liquorix kernel.

Last edited by Hungry ghost; 03-15-2015 at 05:04 AM.
 
Old 03-15-2015, 02:02 PM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Sorry odiseo77. I guess I am not being clear. I know how to install linux-image. If you read my previous post you will see my architecture is amd64.
Quote:
This way you won't need to manually install every new kernel, but it will be automatically upgraded each time a new version arrives.
This is exactly how it worked in the past and now I have to do it manually each time there is a newer version. You have described my problem but sadly not the solution. I believe that I need to edit one of the files in the /etc/apt/apt.conf.d folder.
jdk
 
Old 03-15-2015, 02:43 PM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
@OP: How did you originally install the liquorix kernel?

I think liquorix have a similar virtual package that will always upgrade to the latest version if you install that.
Code:
# apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64
http://liquorix.net/
 
1 members found this post helpful.
Old 03-15-2015, 02:50 PM   #9
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by jdkaye View Post
Sorry odiseo77. I guess I am not being clear. I know how to install linux-image. If you read my previous post you will see my architecture is amd64.

This is exactly how it worked in the past and now I have to do it manually each time there is a newer version. You have described my problem but sadly not the solution. I believe that I need to edit one of the files in the /etc/apt/apt.conf.d folder.
jdk
Maybe I didn't explain myself clearly (or maybe your problem lies somewhere else). There are two liquorix kernel packages for your architecture:

linux-image-3.18-9.dmz.1-liquorix-amd64 --> Contains the 'real' kernel and is not automatically upgraded unless you have the generic linux-image-liquorix-amd64 package.

linux-image-liquorix-amd64 --> Generic kernel package. Doesn't contain any kernel; it's just a dummy package that always depends on the latest version of the previous package in this list. Its only function is to pull in the latest version of the previous package.

If you don't have the generic 'dummy' kernel package installed, your kernel won't be automatically upgraded. So you need to make sure you have the dummy linux-image-liquorix-amd64 package installed.

If it is installed and your kernel still isn't automatically upgraded, then the problem might be related with pinning.

Last edited by Hungry ghost; 03-15-2015 at 02:52 PM.
 
1 members found this post helpful.
Old 03-15-2015, 03:42 PM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Found it and am installing linux-image-liquorix-amd64.
This looks the solution but I'll wait till the next kernel upgrade and confirm it.
Thanks for the help.
jdk

Last edited by jdkaye; 03-15-2015 at 03:46 PM.
 
Old 03-23-2015, 04:28 AM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Thanks to Odiseo77 and "Head on a stick". A new kernel appeared automatically on my upgrade packages (3.19-2.dmz.1-liquorix-amd64). (Re-)Installing the
linux-image-liquorix-amd64 package solved the problem.
Marking this thread as solved.
jdk
 
  


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
Update gnome to a newer version(2.3) kevgol0 Linux - Desktop 1 09-19-2010 08:34 AM
If I update to the newer version of Ubuntu will ndiswrapper still work? izquierdista Ubuntu 2 04-27-2007 04:00 PM
RH9 + how to update linux-2.4.20-8 to newer version Eileen Red Hat 1 04-18-2006 08:27 PM
bad signature when running aptitude update microsoft/linux Debian 11 03-14-2006 03:36 PM
Update Firefox to newer version saudoi Ubuntu 6 02-16-2006 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:53 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