[solved] update manager error

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
justaguy
Level 1
Level 1
Posts: 11
Joined: Sun Sep 08, 2019 3:57 pm

[solved] update manager error

Post by justaguy » Tue Sep 10, 2019 6:27 am

Hello, I'm a new user to Linux Mint, but after reading the "How to get help" section, it seemed better to ask in "Software & Applications" rather than "Newbie Questions."

I'm running Linux Mint 19.2 64bit Mate edition. I installed it from a DVD, and the first set of updates worked fine. I've since installed a little bit more software, but only mainstream stuff: Emacs and the Zim desktop wiki and an ebook reader, all using the synaptic package manager.

Today I saw there were a couple of updates. They downloaded okay, but after "changes applied (as superuser)" had run awhile, I got:

"Changes applied
Not all changes and updates succeeded. for further details of the failure, please expand the 'Details' panel below."

However I couldn't open the details panel because another error window opened up on top of it, reading:

"An error occurred.
The following details are provided:
E: libqt5positioning5: 80.2083:package is in a very bad inconsistent state; you should reinstall it before attempting configuration."

Closing that error window, I was able to open the details panel, which read:

Code: Select all

------(paste begins)-----

(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../libpython3.6_3.6.8-1~18.04.2_amd64.deb ...
Unpacking libpython3.6:amd64 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Preparing to unpack .../libpython3.6-minimal_3.6.8-1~18.04.2_amd64.deb ...
Unpacking libpython3.6-minimal:amd64 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Setting up libpython3.6-minimal:amd64 (3.6.8-1~18.04.2) ...
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../libpython3.6-stdlib_3.6.8-1~18.04.2_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Setting up libpython3.6-stdlib:amd64 (3.6.8-1~18.04.2) ...
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../python3.6-minimal_3.6.8-1~18.04.2_amd64.deb ...
Unpacking python3.6-minimal (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Setting up python3.6-minimal (3.6.8-1~18.04.2) ...
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../python3.6_3.6.8-1~18.04.2_amd64.deb ...
Unpacking python3.6 (3.6.8-1~18.04.2) over (3.6.8-1~18.04.1) ...
Setting up python3.6 (3.6.8-1~18.04.2) ...
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../libpython2.7_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Preparing to unpack .../libpython2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Setting up libpython2.7-minimal:amd64 (2.7.15-4ubuntu4~18.04.1) ...
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../libpython2.7-stdlib_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Setting up libpython2.7-stdlib:amd64 (2.7.15-4ubuntu4~18.04.1) ...
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../python2.7-minimal_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking python2.7-minimal (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Setting up python2.7-minimal (2.7.15-4ubuntu4~18.04.1) ...
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../python2.7_2.7.15-4ubuntu4~18.04.1_amd64.deb ...
Unpacking python2.7 (2.7.15-4ubuntu4~18.04.1) over (2.7.15-4ubuntu4~18.04) ...
Setting up python2.7 (2.7.15-4ubuntu4~18.04.1) ...
Selecting previously unselected package linux-modules-4.15.0-62-generic.
(Reading database ... 347402 files and directories currently installed.)
Preparing to unpack .../0-linux-modules-4.15.0-62-generic_4.15.0-62.69_amd64.deb ...
Unpacking linux-modules-4.15.0-62-generic (4.15.0-62.69) ...
Selecting previously unselected package linux-image-4.15.0-62-generic.
Preparing to unpack .../1-linux-image-4.15.0-62-generic_4.15.0-62.69_amd64.deb ...
Unpacking linux-image-4.15.0-62-generic (4.15.0-62.69) ...
Selecting previously unselected package linux-modules-extra-4.15.0-62-generic.
Preparing to unpack .../2-linux-modules-extra-4.15.0-62-generic_4.15.0-62.69_amd64.deb ...
Unpacking linux-modules-extra-4.15.0-62-generic (4.15.0-62.69) ...
Preparing to unpack .../3-linux-generic_4.15.0.62.64_amd64.deb ...
Unpacking linux-generic (4.15.0.62.64) over (4.15.0.60.62) ...
Preparing to unpack .../4-linux-image-generic_4.15.0.62.64_amd64.deb ...
Unpacking linux-image-generic (4.15.0.62.64) over (4.15.0.60.62) ...
Selecting previously unselected package linux-headers-4.15.0-62.
Preparing to unpack .../5-linux-headers-4.15.0-62_4.15.0-62.69_all.deb ...
Unpacking linux-headers-4.15.0-62 (4.15.0-62.69) ...
Selecting previously unselected package linux-headers-4.15.0-62-generic.
Preparing to unpack .../6-linux-headers-4.15.0-62-generic_4.15.0-62.69_amd64.deb ...
Unpacking linux-headers-4.15.0-62-generic (4.15.0-62.69) ...
Preparing to unpack .../7-linux-headers-generic_4.15.0.62.64_amd64.deb ...
Unpacking linux-headers-generic (4.15.0.62.64) over (4.15.0.60.62) ...
Preparing to unpack .../8-linux-libc-dev_4.15.0-62.69_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.15.0-62.69) over (4.15.0-60.67) ...
Setting up linux-libc-dev:amd64 (4.15.0-62.69) ...
Setting up linux-headers-4.15.0-62 (4.15.0-62.69) ...
dpkg: error processing package libqt5positioning5:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Setting up libpython2.7:amd64 (2.7.15-4ubuntu4~18.04.1) ...
Setting up linux-modules-4.15.0-62-generic (4.15.0-62.69) ...
Setting up libpython3.6:amd64 (3.6.8-1~18.04.2) ...
Setting up linux-headers-4.15.0-62-generic (4.15.0-62.69) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 4.15.0-62-generic
   ...done.
Setting up linux-image-4.15.0-62-generic (4.15.0-62.69) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.15.0-60-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.15.0-60-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.15.0-62-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.15.0-62-generic
Setting up linux-headers-generic (4.15.0.62.64) ...
Setting up linux-modules-extra-4.15.0-62-generic (4.15.0-62.69) ...
Setting up linux-image-generic (4.15.0.62.64) ...
Setting up linux-generic (4.15.0.62.64) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint6) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for linux-image-4.15.0-62-generic (4.15.0-62.69) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 4.15.0-62-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-62-generic
cryptsetup: WARNING: Invalid source device /swapfile
cryptsetup: WARNING: target cryptswap1 has a random key, skipped
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-62-generic
Found initrd image: /boot/initrd.img-4.15.0-62-generic
Found linux image: /boot/vmlinuz-4.15.0-60-generic
Found initrd image: /boot/initrd.img-4.15.0-60-generic
Found linux image: /boot/vmlinuz-4.15.0-54-generic
Found initrd image: /boot/initrd.img-4.15.0-54-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 10 on /dev/sda1
Found Windows Recovery Environment on /dev/sda3
done
Errors were encountered while processing:
 libqt5positioning5:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: error processing package libqt5positioning5:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 libqt5positioning5:amd64
 ----- (paste ends)
I experimented by opening Synaptic, and that also fails with the same libqt5 positioning error.
Last edited by justaguy on Tue Sep 10, 2019 8:54 am, edited 1 time in total.

User avatar
Spearmint2
Level 16
Level 16
Posts: 6241
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: update manager error

Post by Spearmint2 » Tue Sep 10, 2019 7:58 am

Do you need all those old kernels available? Think about removing some of the older ones.

Code: Select all

dpkg: error processing package libqt5positioning5:amd64 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
Seems your problem is with the QT program. Why not reinstall the problem file? I see it in Synaptic Package Manager.

may be a bug.
https://bugreports.qt.io/browse/QTBUG-63124

also in redhat linux.
https://bugzilla.redhat.com/show_bug.cgi?id=1225749

Also notice this:

Code: Select all

cryptsetup: WARNING: Invalid source device /swapfile
cryptsetup: WARNING: target cryptswap1 has a random key, skipped
Check if you have an active swap being used, since you are/were using an encrypted system.

Code: Select all

swapon -s
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

justaguy
Level 1
Level 1
Posts: 11
Joined: Sun Sep 08, 2019 3:57 pm

Re: update manager error

Post by justaguy » Tue Sep 10, 2019 8:48 am

Seems your problem is with the QT program. Why not reinstall the problem file? I see it in Synaptic Package Manager.
Thanks, @Spearmint2 - searching for libqt5positioning5 found it, and reinstalling it has got me the green tick again. I'll know what to do next time.

Edit: following the links to those bug reports, the discussion there is dated 2017. I wonder if something may have resurrected it. Oh, well, I'll mark this as solved for now, and if it re-occurs I'll come back and ask for advice.

As for removing the old kernels, I've been using Linux for a little while, to the extent that I can find my way around somewhat (I still regard the terminal with caution, but no longer think of it as the Big Red Button in a missile silo) and am confident that I can now mess things up in a more consistent and intelligent manner than I used to do. :) However I have a dread of doing the equivalent of sawing off the branch of the tree that I'm sitting on!

Anyway, thanks again for your help.

User avatar
Moem
Level 19
Level 19
Posts: 9202
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: update manager error

Post by Moem » Tue Sep 10, 2019 8:55 am

justaguy wrote:
Tue Sep 10, 2019 8:48 am
I have a dread of doing the equivalent of sawing off the branch of the tree that I'm sitting on!
That's sensible. If you use the Update Manager to remove old kernels, you don't need to worry about that... it will only allow you to remove kernels that are not currently being used. Keep the active one and 1 previous working one, and you'll be golden.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

gm10
Level 18
Level 18
Posts: 8737
Joined: Thu Jun 21, 2018 5:11 pm

Re: update manager error

Post by gm10 » Tue Sep 10, 2019 9:19 am

Spearmint2 wrote:
Tue Sep 10, 2019 7:58 am
Do you need all those old kernels available? Think about removing some of the older ones.
What "all those old kernels"? He's only got 3 kernels installed, one of them only just now. That's the standard amount Update Manager's automatic maintenance service will leave behind. The next time it runs the oldest one will get removed so it'll be back down to two. No need to do anything manually.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

User avatar
Spearmint2
Level 16
Level 16
Posts: 6241
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: update manager error

Post by Spearmint2 » Tue Sep 10, 2019 10:40 am

gm10 wrote:
Tue Sep 10, 2019 9:19 am
Spearmint2 wrote:
Tue Sep 10, 2019 7:58 am
Do you need all those old kernels available? Think about removing some of the older ones.
What "all those old kernels"? He's only got 3 kernels installed, one of them only just now. That's the standard amount Update Manager's automatic maintenance service will leave behind. The next time it runs the oldest one will get removed so it'll be back down to two. No need to do anything manually.
4.15.0-54-generic
4.15.0-60-generic
4.15.0-62-generic
4.15.0-60.67
4.15.0-62.69
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

gm10
Level 18
Level 18
Posts: 8737
Joined: Thu Jun 21, 2018 5:11 pm

Re: [solved] update manager error

Post by gm10 » Tue Sep 10, 2019 10:52 am

Just because you print two of them twice doesn't make it more than 3. :lol:
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

justaguy
Level 1
Level 1
Posts: 11
Joined: Sun Sep 08, 2019 3:57 pm

Re: update manager error

Post by justaguy » Tue Sep 10, 2019 11:19 am

Moem wrote:
Tue Sep 10, 2019 8:55 am
justaguy wrote:
Tue Sep 10, 2019 8:48 am
I have a dread of doing the equivalent of sawing off the branch of the tree that I'm sitting on!
That's sensible. If you use the Update Manager to remove old kernels, you don't need to worry about that... it will only allow you to remove kernels that are not currently being used. Keep the active one and 1 previous working one, and you'll be golden.
Thanks for the advice @Moem. I'll give this a couple of days to check that the libqt5 issue really has been resolved (I noticed that in the bug-thread they mentioned the e-reader Calibri, so I'll make sure to use that and see if it's the culprit.) After that I'll look into pruning the old kernels. The Windows installation has fallen on its sword, so I might look into ditching that, too. I had intended to do so when I installed this version of Linux mint but I didn't understand what it meant about choosing a security something-or-other (password? key pair? algorithm? It didn't say) and had to back off.

Anyway, thanks again for the advice.

gm10
Level 18
Level 18
Posts: 8737
Joined: Thu Jun 21, 2018 5:11 pm

Re: update manager error

Post by gm10 » Tue Sep 10, 2019 11:25 am

justaguy wrote:
Tue Sep 10, 2019 11:19 am
After that I'll look into pruning the old kernels.
As I mentioned, you don't have to, in LM 19.2 that's taken care of for you automatically (assuming you didn't disable the automatic maintenance service I added to Update Manager's preferences - it's enabled by default).
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

Post Reply

Return to “Software & Applications”