Ubuntu 14.04 apt-get problem...

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Ubuntu 14.04 apt-get problem...

Robert Heller
Amoungst a number of Ubuntu machines I manage at the local library are a pair
of laptops.  Back a few kernel updates ago, there was a "bad" kernel (caused
Java to crash).  Since these laptops have the Arduino IDE installed, this was
a problem.  I could not figure out how to make them boot the previous kernel
by default (the grub2 config process basically sucks and Ubuntu 14.04
incarnation of it is basically broken in this regard, but that is neither here
nor there), so I just did an apt-get purge of the "bad" kernel.  Since then
apt-get dist-upgrade no longer picks up new kernels automagically -- I have to
*manually* update the kernels (apt-get dist-upgrade linux-<mumble>...) and now
I have to manually remove the older kernels (apt-get autoremove no longer
removes the older kernels).  I cannot find where this setting was set so I can
unset it.

--
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
[hidden email]       -- Webhosting Services
                                                                                           

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 14.04 apt-get problem...

Oliver Grawert
hi,
Am Freitag, den 26.10.2018, 13:38 -0400 schrieb Robert Heller:


> apt-get dist-upgrade no longer picks up new kernels automagically --
> I have to 
> *manually* update the kernels (apt-get dist-upgrade linux-
> <mumble>...) and now 
> I have to manually remove the older kernels (apt-get autoremove no
> longer 
> removes the older kernels).  I cannot find where this setting was set
> so I can 
> unset it.
your purging most likely removed the most top level meta package which
is actually responsible for most of the update behaviour you are
missing, just install it again:

sudo apt-get install linux-generic

ciao
        oli
--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 14.04 apt-get problem...

Robert Heller
At Fri, 26 Oct 2018 20:23:49 +0200 "Ubuntu user technical support,  not for general discussions" <[hidden email]> wrote:

>
>
>
> hi,
> Am Freitag, den 26.10.2018, 13:38 -0400 schrieb Robert Heller:
> > 
> > apt-get dist-upgrade no longer picks up new kernels automagically --
> > I have to 
> > *manually* update the kernels (apt-get dist-upgrade linux-
> > <mumble>...) and now 
> > I have to manually remove the older kernels (apt-get autoremove no
> > longer 
> > removes the older kernels).  I cannot find where this setting was set
> > so I can 
> > unset it.
>
> your purging most likely removed the most top level meta package which
> is actually responsible for most of the update behaviour you are
> missing, just install it again:
>
> sudo apt-get install linux-generic
OK, I did that, and since it did not complain about the package being already
installed, I guess I did manage to remove it.  This magic of using a meta
package to handle kernel updates and autoremove is really strange, from the
perspective of someone used to RHEL/CentOS (which has none of this nonsense).

It would be nicer if the Ubuntu grub2 config was more "sensible". Right now
the "main" menu only ever lists the most recent kernel and to get to an older
kernel, one has to go into a sub-menu ("Advanced"). This is fine (I guess?)
for interactive selection, but is hard to select an older kernel as a
non-interactive boot default. That is, the menu structure is:

current (most recent) kernel
current (most recent) kernel, recovery mode
Advanced Menu
   older kernel
   older kernel, recovery mode
   ...
   
What would be better would be:

current (most recent) kernel
current (most recent) kernel, recovery mode
older kernel #1
older kernel #1, recovery mode
older kernel #2
older kernel #2, recovery mode
...

This makes it easy to change the default from 0 (the newest kernel) to, say, 2
(the previous kernel) or 4 (two kernels back).

In my case these laptops are used by non-Linux people who just expect to turn
on the machines and have them just work.

>
> ciao
> oliContent-Description: This is a digitally signed message part
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iEYEABEKAAYFAlvTW7YACgkQSsOT+6LQaTbq6wCg28mk5YaBEQdG3Qf0y10uBj/L
> raIAoOHzmXFX6kUYDZGhtW41pVBIBzhN
> =bdW/
> -----END PGP SIGNATURE-----
>
> MIME-Version: 1.0
>
--
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
[hidden email]       -- Webhosting Services
   


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu 14.04 apt-get problem...

Tom H-4
In reply to this post by Oliver Grawert
On Fri, Oct 26, 2018 at 8:26 PM Oliver Grawert <[hidden email]> wrote:

> Am Freitag, den 26.10.2018, 13:38 -0400 schrieb Robert Heller:
>>
>> apt-get dist-upgrade no longer picks up new kernels automagically --
>> I have to *manually* update the kernels (apt-get dist-upgrade linux-
>> <mumble>...) and now I have to manually remove the older kernels
>> (apt-get autoremove no longer removes the older kernels). I cannot
>> find where this setting was set so I can unset it.
>
> your purging most likely removed the most top level meta package which
> is actually responsible for most of the update behaviour you are
> missing, just install it again:
>
> sudo apt-get install linux-generic

Or "linux-image-generic" if you don't need/want the headers.

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users