Error in doing an apt-get autoremove
phil
phil at philfixit.info
Fri Sep 11 23:29:47 UTC 2015
On 12-Sep-15 9:07 AM, silver.bullet at zoho.com wrote:
> On Sat, 12 Sep 2015 08:45:20 +1000, phil wrote:
>> Chances are its nothing to worry about, i've seen it many times and
>> the pc always reboots.
>
> When ever I allowed that crappy GRUB automation to waste my time, the
> generated grub.cfg explicitly generated entries for
> /boot/vmlinuz-1.2.3-4 and /boot/initrd.img-1.2.3-4, those obscure links
> in / were never used.
>
> However, on the OPs install the links exist, the kernel doesn't exist.
> Since the link have got the suffix ".old" likely a "new" kernel is
> installed and located in /grub and not only located in the RAM.
>
> "ls /boot/" does show. "less /boot/grub/grub.cfg" could be used to take
> a look at the grub menu.
>
> I manually edit grub.cfg, that btw. isn't part of my Ubuntu install. I
> also manually remove the links in /, but add links to /boot, so I don't
> need to rewrite grub.cfg if a kernel from the repositories is upgraded.
>
> Regards,
> Ralf
Ill try that on a backup box somewhere, cheers Ralf.
Every kernel update i see the error and fwiw
phil at master:~$ ls -hog /
total 88K
drwxr-xr-x 2 4.0K Aug 6 07:12 bin
drwxr-xr-x 3 4.0K Sep 11 08:59 boot
drwxr-xr-x 16 4.4K Sep 11 08:59 dev
drwxr-xr-x 117 12K Sep 11 08:59 etc
drwxr-xr-x 17 4.0K Aug 19 08:07 home
lrwxrwxrwx 1 33 Sep 4 08:19 initrd.img -> boot/initrd.img-3.13.0-63-generic
drwxr-xr-x 21 4.0K Jun 11 19:45 lib
drwx------ 2 16K Nov 23 2014 lost+found
drwxr-xr-x 3 4.0K Nov 23 2014 media
drwxr-xr-x 2 4.0K Aug 4 2012 mnt
drwxr-xr-x 2 4.0K Nov 23 2014 opt
dr-xr-xr-x 211 0 Sep 6 07:59 proc
drwx------ 6 4.0K Jul 29 07:35 root
drwxr-xr-x 25 960 Sep 12 09:05 run
drwxr-xr-x 2 12K Aug 13 12:47 sbin
drwxr-xr-x 3 4.0K Feb 23 2015 srv
dr-xr-xr-x 13 0 Sep 6 07:59 sys
drwxrwxrwt 4 4.0K Sep 12 09:09 tmp
drwxr-xr-x 10 4.0K Nov 23 2014 usr
drwxr-xr-x 14 4.0K Jun 11 19:53 var
lrwxrwxrwx 1 30 Sep 4 08:19 vmlinuz -> boot/vmlinuz-3.13.0-63-generic
phil at master:~$ ls -hog /boot/
total 29M
-rw-r--r-- 1 1.2M Aug 15 08:58 abi-3.13.0-63-generic
-rw-r--r-- 1 166K Aug 15 08:58 config-3.13.0-63-generic
drwxr-xr-x 5 12K Sep 11 08:59 grub
-rw-r--r-- 1 19M Sep 4 08:20 initrd.img-3.13.0-63-generic
-rw-r--r-- 1 173K Mar 12 2014 memtest86+.bin
-rw-r--r-- 1 174K Mar 12 2014 memtest86+.elf
-rw-r--r-- 1 175K Mar 12 2014 memtest86+_multiboot.bin
-rw------- 1 2.6M Aug 15 08:58 System.map-3.13.0-63-generic
-rw------- 1 5.6M Aug 15 08:58 vmlinuz-3.13.0-63-generic
So if the links in / aren't used why put them there at all . . . ?
--
"USMC Rules of Gunfighting #4: If your shooting stance is good, you're
probably not moving fast enough nor using cover correctly.
Regards,
Phil
>
> FWIW
>
> [root at moonstudio weremouse]# ls -hog /
> total 68K
> drwxr-xr-x 2 4.0K Sep 10 12:02 bin
> drwxr-xr-x 2 4.0K Sep 11 13:52 boot
> drwxr-xr-x 17 5.0K Sep 11 19:09 dev
> drwxr-xr-x 118 4.0K Sep 11 19:20 etc
> drwxr-xr-x 3 4.0K Aug 8 11:59 home
> drwxr-xr-x 19 4.0K Aug 15 21:39 lib
> drwxr-xr-x 2 4.0K Jul 25 22:50 lib64
> drwxr-xr-x 4 4.0K Sep 5 18:20 media
> drwxr-xr-x 4 4.0K Sep 11 22:21 mnt
> drwxr-xr-x 3 4.0K Aug 6 15:12 opt
> dr-xr-xr-x 150 0 Sep 11 21:04 proc
> drwx------ 13 4.0K Sep 9 08:42 root
> drwxr-xr-x 21 660 Sep 11 22:23 run
> drwxr-xr-x 2 12K Sep 10 12:02 sbin
> drwxr-xr-x 2 4.0K Jul 25 08:30 srv
> dr-xr-xr-x 13 0 Sep 11 21:04 sys
> drwxrwxrwt 12 4.0K Sep 11 23:11 tmp
> drwxr-xr-x 10 4.0K Jul 25 22:50 usr
> drwxr-xr-x 12 4.0K Jul 25 23:02 var
> [root at moonstudio weremouse]# ls -hog /boot/
> total 66M
> -rw-r--r-- 1 1.3M Sep 1 22:27 abi-4.2.0-7-lowlatency
> -rw-r--r-- 1 137K Aug 23 02:00 config-3.10.61-rt65-1-moonstudio
> -rw-r--r-- 1 181K Sep 1 22:27 config-4.2.0-7-lowlatency
> -rw-r--r-- 1 20M Aug 23 09:26 initrd.img-3.10.61-rt65-1-moonstudio
> -rw-r--r-- 1 28M Sep 10 12:02 initrd.img-4.2.0-7-lowlatency
> lrwxrwxrwx 1 29 Sep 11 13:52 initrd.img-lowlatency -> initrd.img-4.2.0-7-lowlatency
> -rw-r--r-- 1 179K Aug 27 15:04 memtest86+.bin
> -rw-r--r-- 1 181K Aug 27 15:04 memtest86+.elf
> -rw-r--r-- 1 181K Aug 27 15:04 memtest86+_multiboot.bin
> -rw------- 1 2.4M Aug 23 03:22 System.map-3.10.61-rt65-1-moonstudio
> -rw------- 1 3.6M Sep 1 22:27 System.map-4.2.0-7-lowlatency
> -rw------- 1 3.9M Aug 23 03:22 vmlinuz-3.10.61-rt65-1-moonstudio
> -rw------- 1 6.5M Sep 1 22:27 vmlinuz-4.2.0-7-lowlatency
> lrwxrwxrwx 1 26 Sep 11 13:52 vmlinuz-lowlatency -> vmlinuz-4.2.0-7-lowlatency
>
>
More information about the ubuntu-users
mailing list