Update Issue

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
WharfRat
Level 21
Level 21
Posts: 13897
Joined: Thu Apr 07, 2011 8:15 pm

Re: Update Issue

Post by WharfRat »

techie716 wrote:Can you paste backdusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo dpkg -l|egrep 'linux\-head|linux\-image
>

dusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo dpkg -l|egrep 'linux\-head|linux\-image
>

Nothing happens with the above commands?
You left off the last ' so try it againsudo dpkg -l|egrep 'linux\-head|linux\-image'
ImageImage

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

dusty@dusty-HP-Z220-CMT-Workstation ~ $ inxi -r
Repos: Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com sonya main upstream import backport
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
Active apt sources in file: /etc/apt/sources.list.d/plexmediaserver.list
deb https://downloads.plex.tv/repo/deb/ public main
Active apt sources in file: /etc/apt/sources.list.d/teejee2008-ppa-xenial.list
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial main
dusty@dusty-HP-Z220-CMT-Workstation ~ $

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

Code: Select all

dusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo dpkg -l|egrep 'linux\-head|linux\-image'
[sudo] password for dusty: 
ii  linux-headers-4.12.6-041206                   4.12.6-041206.201708111232                               all          Header files related to Linux kernel version 4.12.6
ii  linux-headers-4.12.6-041206-generic           4.12.6-041206.201708111232                               amd64        Linux kernel headers for version 4.12.6 on 64 bit x86 SMP
ii  linux-headers-4.4.0-21                        4.4.0-21.37                                              all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-21-generic                4.4.0-21.37                                              amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-53                        4.4.0-53.74                                              all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-53-generic                4.4.0-53.74                                              amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-57                        4.4.0-57.78                                              all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-57-generic                4.4.0-57.78                                              amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-83                        4.4.0-83.106                                             all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-83-generic                4.4.0-83.106                                             amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-87                        4.4.0-87.110                                             all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-87-generic                4.4.0-87.110                                             amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-89                        4.4.0-89.112                                             all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-89-generic                4.4.0-89.112                                             amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-91                        4.4.0-91.114                                             all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-91-generic                4.4.0-91.114                                             amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.8.0-53                        4.8.0-53.56~16.04.1                                      all          Header files related to Linux kernel version 4.8.0
ii  linux-headers-4.8.0-53-generic                4.8.0-53.56~16.04.1                                      amd64        Linux kernel headers for version 4.8.0 on 64 bit x86 SMP
ii  linux-headers-4.8.0-58                        4.8.0-58.63~16.04.1                                      all          Header files related to Linux kernel version 4.8.0
ii  linux-headers-4.8.0-58-generic                4.8.0-58.63~16.04.1                                      amd64        Linux kernel headers for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-4.12.6-041206-generic             4.12.6-041206.201708111232                               amd64        Linux kernel image for version 4.12.6 on 64 bit x86 SMP
ii  linux-image-4.4.0-21-generic                  4.4.0-21.37                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-53-generic                  4.4.0-53.74                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-57-generic                  4.4.0-57.78                                              amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-83-generic                  4.4.0-83.106                                             amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-87-generic                  4.4.0-87.110                                             amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-89-generic                  4.4.0-89.112                                             amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-91-generic                  4.4.0-91.114                                             amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
iF  linux-image-4.8.0-53-generic                  4.8.0-53.56~16.04.1                                      amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-4.8.0-58-generic                  4.8.0-58.63~16.04.1                                      amd64        Linux kernel image for version 4.8.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-21-generic            4.4.0-21.37                                              amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-53-generic            4.4.0-53.74                                              amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-57-generic            4.4.0-57.78                                              amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-83-generic            4.4.0-83.106                                             amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-87-generic            4.4.0-87.110                                             amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-89-generic            4.4.0-89.112                                             amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-91-generic            4.4.0-91.114                                             amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iU  linux-image-extra-4.8.0-53-generic            4.8.0-53.56~16.04.1                                      amd64        Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
rH  linux-image-extra-4.8.0-58-generic            4.8.0-58.63~16.04.1                                      amd64        Linux kernel extra modules for version 4.8.0 on 64 bit x86 SMP
dusty@dusty-HP-Z220-CMT-Workstation ~ $
Last edited by WharfRat on Fri Sep 08, 2017 12:20 pm, edited 1 time in total.
Reason: Added code tag

User avatar
WharfRat
Level 21
Level 21
Posts: 13897
Joined: Thu Apr 07, 2011 8:15 pm

Re: Update Issue

Post by WharfRat »

You have a lot of kernels that's taking up space.

Which one is loading now uname -r
ImageImage

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

dusty@dusty-HP-Z220-CMT-Workstation ~ $ uname -r
4.12.6-041206-generic
dusty@dusty-HP-Z220-CMT-Workstation ~ $

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

Thank you again for your efforts they are appreciated

User avatar
WharfRat
Level 21
Level 21
Posts: 13897
Joined: Thu Apr 07, 2011 8:15 pm

Re: Update Issue

Post by WharfRat »

It looks like you've been installing kernels willy-nilly :?

The latest I gave for 18.2 is 4.4.0-93 so try installing that version and later purging all the others.

sudo apt-get install linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic linux-image-4.4.0-93-generic linux-image-extra-4.4.0-93-generic
ImageImage

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

dusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo apt-get install linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic linux-image-4.4.0-93-generic linux-image-extra-4.4.0-93-generi
[sudo] password for dusty:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
dusty@dusty-HP-Z220-CMT-Workstation ~ $

dusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo apt-get install linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic linux-image-4.4.0-93-generic linux-image-extra-4.4.0-93-generi
[sudo] password for dusty:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
dusty@dusty-HP-Z220-CMT-Workstation ~ $

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

dusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo dpkg --configure -a
Setting up linux-image-4.8.0-53-generic (4.8.0-53.56~16.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-4.8.0-53-generic
) points to /boot/initrd.img-4.8.0-53-generic
(/boot/initrd.img-4.8.0-53-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.8.0-53-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-4.8.0-53-generic
) points to /boot/vmlinuz-4.8.0-53-generic
(/boot/vmlinuz-4.8.0-53-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.8.0-53-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

I can't seem to do anything here without an error of one sort or other

User avatar
WharfRat
Level 21
Level 21
Posts: 13897
Joined: Thu Apr 07, 2011 8:15 pm

Re: Update Issue

Post by WharfRat »

These errors don't make much sense, paste back the url returned by

Code: Select all

sudo -i
bash -x /var/lib/dpkg/info/linux-image-4.8.0-53-generic.postinst configure|pastebin
exit
ImageImage

User avatar
killer de bug
Level 14
Level 14
Posts: 5399
Joined: Tue Jul 08, 2008 1:49 pm
Location: Leuven, Belgium

Re: Update Issue

Post by killer de bug »

Please comment/deselect these 2 repo, we don't need them and they created the problem:

Code: Select all

Active apt sources in file: /etc/apt/sources.list.d/plexmediaserver.list
deb https://downloads.plex.tv/repo/deb/ public main
Active apt sources in file: /etc/apt/sources.list.d/teejee2008-ppa-xenial.list
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu xenial main
When this is done

Code: Select all

apt update &&  sudo dpkg --configure -a
If this doesn't lead to the expected result, you should simply remove these 4.8 kernels, as you don't use them. You have the 4.12 which is loaded. And it's not coming from the repo. The last one is 4.11 in Linux Mint 18.x
If it ain't broke, fix it until it is.

Rocky Bennett
Level 5
Level 5
Posts: 564
Joined: Tue May 12, 2015 6:22 pm

Re: Update Issue

Post by Rocky Bennett »

I'm just a newbie, but I have read this entire thread. At some point isn't it easier to just wash one's hands and reinstall Linux Mint from scratch and start over?

User avatar
killer de bug
Level 14
Level 14
Posts: 5399
Joined: Tue Jul 08, 2008 1:49 pm
Location: Leuven, Belgium

Re: Update Issue

Post by killer de bug »

How do you want to learn if you are not ready to face difficulties? How will you avoid doing the same mistake again if you don't know what was wrong? :wink:
If it ain't broke, fix it until it is.

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

I went to administration, Software sources and recoved the two repositories. I tried using "sudo gedit /etc/apt/sources.list.d" but it said it didn't exist. Once I updated the Software sources to remove these entires I updated the cache at which time it told my to run sudo dpkg --configure -a again. Then I did what you asked below. It stalls at that same line, I left it all night then closed the terminal.



dusty@dusty-HP-Z220-CMT-Workstation ~ $ apt update && sudo dpkg --configure -a
[sudo] password for dusty:
Ign:1 http://packages.linuxmint.com sonya InRelease
Hit:2 http://packages.linuxmint.com sonya Release
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:5 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 306 kB in 1s (206 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
54 packages can be upgraded. Run 'apt list --upgradable' to see them.
Setting up linux-image-4.8.0-53-generic (4.8.0-53.56~16.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-4.8.0-53-generic
) points to /boot/initrd.img-4.8.0-53-generic
(/boot/initrd.img-4.8.0-53-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.8.0-53-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-4.8.0-53-generic
) points to /boot/vmlinuz-4.8.0-53-generic
(/boot/vmlinuz-4.8.0-53-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.8.0-53-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.8.0-53-generic /boot/vmlinuz-4.8.0-53-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic

User avatar
killer de bug
Level 14
Level 14
Posts: 5399
Joined: Tue Jul 08, 2008 1:49 pm
Location: Leuven, Belgium

Re: Update Issue

Post by killer de bug »

Since you are running a different kernel, I would remove this old one.

Code: Select all

apt remove linux-image-4.8.0-53-generic linux-kernel-generic linux-image-extra-4.8.0-53-generic
If it ain't broke, fix it until it is.

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

killer de bug wrote:How do you want to learn if you are not ready to face difficulties? How will you avoid doing the same mistake again if you don't know what was wrong? :wink:

This is how I feel. It is very frustrating I agree but I have learned so much just from the things you have had me try. After you are given commands to try I suggest that you look up the commands so you know what exactly they are doing. Linux is so much more stable than Windows and its open, allowing you to do these things. With Windows you got what you have and that is pretty much that. Linux usually is solid, but when you have a problem, do to its "openness" it is sometimes more difficult to repair. I will tell you this, The community for linux is wonderful, full of great people willing to help you with only the reward of a thank you. That alone, to me is worth sticking with Linux. I even as a somewhat newbie have been able to give back by helping a couple newbies with a problem they ran into on one of the forums. It is a great feeling to be able to do that. I have to admit although I am an experienced Novel administrator with many years of experience and a lot of Novell training, which has helped me in the Linux world/ Novell even changed their servers to SUSE before I had to get out of the field because of a bad auto accident and stroke. With our Novell servers, they would run for a year, literally without a problem. Our Windows servers had to be rebooted every 30 days on a schedule just to keep them running. It was only Windows huge budget that let them steal the market.

User avatar
BG405
Level 8
Level 8
Posts: 2327
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: Update Issue

Post by BG405 »

Hope you have sorted this, but if not, it sounds like a space issue causing it to choke; I've had similar happen on one of my "test" machines. Sorted by clearing out unused kernels.

What's the output of df -hT?
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 8GB - Manjaro KDE with Mint VMs
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Two ROMS don't make a WRITE ...

User avatar
Termy
Level 5
Level 5
Posts: 776
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Update Issue

Post by Termy »

This might sound silly, but looking at that first post from the OP, and then reading a couple of others, it seems udev is not installed now, which seems to be causing issues. So, how about installing it?

Code: Select all

sudo apt-get install udev
If you have issues still, reboot, enter GRUB, choose your kernel's recovery option (if available), then run the same command; it will probably avoid locks, and may well allow you to successfully run commands like

Code: Select all

apt-get install -f
...and...

Code: Select all

dpkg --configure -a
Just be very careful what you do there as you will be logged in as the root user, which means you will have absolute control.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

techie716
Level 2
Level 2
Posts: 51
Joined: Mon Sep 04, 2017 1:43 am

Re: Update Issue

Post by techie716 »

I tried the first thing but the same I always get.


dusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo apt-get install udev
[sudo] password for dusty:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Then after a reboot:

dusty@dusty-HP-Z220-CMT-Workstation ~ $ sudo dpkg --configure -a
dpkg: error: dpkg status database is locked by another process
dusty@dusty-HP-Z220-CMT-Workstation ~ $

dusty@dusty-HP-Z220-CMT-Workstation ~ $ apt-get install -f
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
dusty@dusty-HP-Z220-CMT-Workstation ~ $

Post Reply

Return to “Newbie Questions”