You are not logged in.

#1 2023-10-31 21:43

NOMOmicrosoft
Member
Registered: 2023-10-31
Posts: 4

Error while installing package. . . .error returns exit status 1

Hello everyone- new here.  I have been able to use this os for some time now and manage different things just reading varied posts from forums, but this has me stumped.  I truly enjoy this Linux distro and intend to keep er goin for a long time to come.  Heres my inquiry;

When running updates in Discover, for some time now, they all seem to install but at the end I am shown the error message: Package failed to install Error while installing package: installed grub-pc package post-installation script subprocess returned error exit status 1.

Is this something I should be concerned about- as I said, updates seem to succeed and I am not presented with any when I open Discover again to search for updates.

This q4os system- Debian GNU/Linux 11 running KDE Plasma version 5.20.2
Cheers!


"There is nothing to be learned from the second kick of a mule" - Mark Twain

Offline

#2 2023-11-01 08:23

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,301

Re: Error while installing package. . . .error returns exit status 1

I am starting with the assumption that you installed in BIOS-Legacy mode rather than with GPT-UEFI configuration.
Normally you would know this from when you installed, but if you are not certain please run inxi -P and copy the results back here before going any further.

In Konsole run
sudo apt update
It should show you that grub-pc needs to be installed
sudo apt install grub-pc
You'll then get a dialogue box asking you where it should be pointed.
Normally with a hard drive this would be sda. If you deliberately installed grub elsewhere - eg sda1 then you'd need to pick that.

The error is probably because that dialogue box cannot be launched by Discover for some reason.

Offline

#3 2023-11-02 19:13

NOMOmicrosoft
Member
Registered: 2023-10-31
Posts: 4

Re: Error while installing package. . . .error returns exit status 1

Thank you bin;
You are correct that my install was in BIOS-Legacy mode- this is a 2006 HP Compaq desktop with which I have replaced and upgraded everything except the motherboard- I have done so much with it all these years, in fact it now thinks that it is a Dell.
So- in Konsole I issued your first suggestion and this is what come up:

(listed 7 Hits to links)
Fetched 48.4 kB in 5s (10.7 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

No mention of grub- Being infanile in this process, anything you suggest would be welcome.


"There is nothing to be learned from the second kick of a mule" - Mark Twain

Offline

#4 2023-11-03 07:29

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,301

Re: Error while installing package. . . .error returns exit status 1

Ah yes - Compaq desktops - I spent many happy years working on and with them plus laptops and servers.

As regards grup-pc, on the face of it all would seem to be OK. If it hadn't installed you would see it in Konsole.

I would take a look in /var/log/apt/term.log and history.log and search for grub-pc just to make sure it shows as installed.

It may well be this was just a false error from Discover - sorry I don't use Plasma.

Offline

#5 2023-11-03 10:14

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,259
Website

Re: Error while installing package. . . .error returns exit status 1

Please run in terminal:
$ qrepolist
$ sudo apt update
$ sudo apt dist-upgrade
and post back the result

Offline

#6 2023-11-03 18:58

NOMOmicrosoft
Member
Registered: 2023-10-31
Posts: 4

Re: Error while installing package. . . .error returns exit status 1

Issued an apt show grub-pc and results come back as installed- Thank you bin!

q4osteam- I will run suggested commands- thanks


"There is nothing to be learned from the second kick of a mule" - Mark Twain

Offline

#7 2023-11-03 19:22

NOMOmicrosoft
Member
Registered: 2023-10-31
Posts: 4

Re: Error while installing package. . . .error returns exit status 1

q4osteam- results from commands

adminq@q4os-desktop:~$ qrepolist
deb /q4repo q4os-4-0-cn main
deb /qtderepo bullseye basic main
deb /debian/ bullseye main contrib non-free
deb /debian-security/ bullseye-security main contrib non-free
deb /debian/ bullseye-updates main contrib non-free
deb mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bullseye main non-free
deb mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bullseye ahs
deb [arch=amd64,i386] q4os.org/qextrepo bullseye-mx-cn main

adminq@q4os-desktop:~$ sudo apt update
Get:1 /debian-security bullseye-security InRelease [48.4 kB]
Hit:2 /debian bullseye InRelease   
Hit:3 /debian bullseye-updates InRelease                                   
Hit:4 mirrors.rit.edu/mxlinux/mx-packages/mx/repo bullseye InRelease                                                                                                                                                               
Hit:5 /q4repo q4os-4-0-cn InRelease                                                                                                                                                                                       
Hit:6 /qtderepo bullseye InRelease                                                                                                                                                                                         
Hit:7 /qextrepo bullseye-mx-cn InRelease                                                                                                                                                                                   
Fetched 48.4 kB in 11s (4,357 B/s)                                                                                                                                                                                                         
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
adminq@q4os-desktop:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cheese-common gnome-video-effects gstreamer1.0-clutter-3.0 libcheese-gtk25 libcheese8 libclutter-1.0-0 libclutter-1.0-common libclutter-gst-3.0-0 libclutter-gtk-1.0-0 libcogl-common libcogl-pango20 libcogl-path20 libcogl20
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up grub-pc (2.06-3~deb11u6) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.10.0-26-686-pae
Found initrd image: /boot/initrd.img-5.10.0-26-686-pae
Found linux image: /boot/vmlinuz-5.10.0-25-686-pae
Found initrd image: /boot/initrd.img-5.10.0-25-686-pae
Found linux image: /boot/vmlinuz-5.10.0-24-686-pae
Found initrd image: /boot/initrd.img-5.10.0-24-686-pae
Found linux image: /boot/vmlinuz-5.10.0-23-686-pae
Found initrd image: /boot/initrd.img-5.10.0-23-686-pae
Found linux image: /boot/vmlinuz-5.10.0-22-686-pae
Found initrd image: /boot/initrd.img-5.10.0-22-686-pae
Found linux image: /boot/vmlinuz-5.10.0-21-686-pae
Found initrd image: /boot/initrd.img-5.10.0-21-686-pae
Found linux image: /boot/vmlinuz-5.10.0-8-686-pae
Found initrd image: /boot/initrd.img-5.10.0-8-686-pae
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
done

Had to shorten some lines- Forum won't allow posting of links.


"There is nothing to be learned from the second kick of a mule" - Mark Twain

Offline

Board footer

Powered by FluxBB