You are not logged in.

#1 Yesterday 01:24

kingofhattusha
Member
Registered: Yesterday
Posts: 3

Problems with updating.

I am relatively new to linux. So this is probably a very easy fix but it seems to be Q4OS specific and searching online doesn't yield a solution to this. Basically everytime I launch the discover center I get an error message. Trying to update from the terminal doesn't work either.

The error reads as follows: E: Problem executing scripts APT::Update::Post-Invoke-Success '/usr/lib/q4os/qunattended-ctl refresh-origins'
E: Sub-process returned an error code.

Any help is appreciated, Thank you very much.

Offline

#2 Yesterday 06:38

Taige
Member
Registered: 2025-08-19
Posts: 80

Re: Problems with updating.

Which Q4OS do you have installed?
Andromeda Plasma 64bit or Andromeda Trinity 64bit?

Offline

#3 Yesterday 10:04

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,383
Website

Re: Problems with updating.

Welcome to the forum smile

Thanks for reporting, it seems to be Q4OS issue.
It is fixed on our side now and the fix gets public in a few days.

Could you post the output of these two lines:
$ dpkg -l q4os-updater-common | tail -1
$ sudo /usr/lib/q4os/qunattended-ctl refresh-origins ; echo "exit: $?"

If the first line starts with "rc", or the second says "No such file or
directory", then the update manager was removed at some point and only its
leftover apt hook file is still there. Deleting that leftover fixes it right away:
$ sudo rm /etc/apt/apt.conf.d/55unattended-upgrades-q4os-refresh-hook
$ sudo apt update
If the line starts with "ii" instead, leave the file alone and just post the
two outputs here.

Offline

#4 Yesterday 18:41

kingofhattusha
Member
Registered: Yesterday
Posts: 3

Re: Problems with updating.

q4osteam wrote:

Welcome to the forum smile

Thanks for reporting, it seems to be Q4OS issue.
It is fixed on our side now and the fix gets public in a few days.

Could you post the output of these two lines:
$ dpkg -l q4os-updater-common | tail -1
$ sudo /usr/lib/q4os/qunattended-ctl refresh-origins ; echo "exit: $?"

If the first line starts with "rc", or the second says "No such file or
directory", then the update manager was removed at some point and only its
leftover apt hook file is still there. Deleting that leftover fixes it right away:
$ sudo rm /etc/apt/apt.conf.d/55unattended-upgrades-q4os-refresh-hook
$ sudo apt update
If the line starts with "ii" instead, leave the file alone and just post the
two outputs here.

Hello, Thank you so much for your answer. Here are my results, I hope it will be helpful.

Inputing the fisrt line:
rc  q4os-updater-common 4.6-a1       amd64        Q4OS update manager - backend

The second:
sudo: /usr/lib/q4os/qunattended-ctl: command not found
exit: 1

Note about the update manager. Now I understand that it might be my fault, I was tinkering for a bit with the Q4OS software center and installing things and I installed the update manager but I thought having the KDE Discover center alone is sufficent for updating so I removed it.

Added later 01 min 24 s:

Taige wrote:

Which Q4OS do you have installed?
Andromeda Plasma 64bit or Andromeda Trinity 64bit?

I'm using Andromeda Plasma 64bit.

Offline

#5 Yesterday 19:13

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,383
Website

Re: Problems with updating.

Removing the update manager was a perfectly reasonable thing to do - if
Discover covers your updates, you do not need it. The fault is ours: our file
should have gone with the package instead of staying behind and breaking apt
for you.

One command clears it:
$ sudo apt purge q4os-updater-common
Then "sudo apt update" should run clean again.

Offline

#6 Yesterday 19:20

kingofhattusha
Member
Registered: Yesterday
Posts: 3

Re: Problems with updating.

q4osteam wrote:

Removing the update manager was a perfectly reasonable thing to do - if
Discover covers your updates, you do not need it. The fault is ours: our file
should have gone with the package instead of staying behind and breaking apt
for you.

One command clears it:
$ sudo apt purge q4os-updater-common
Then "sudo apt update" should run clean again.

I did as you istructed and 'sudo apt update' ran perfectly fine. Thank you so much.  smile
The issue is fixed.

Offline

#7 Today 06:39

Taige
Member
Registered: 2025-08-19
Posts: 80

Re: Problems with updating.

I hope that the speed with which the Q4OS team helps solve problems will convince more and more people to use this operating system.

Offline

#8 Today 07:06

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,383
Website

Re: Problems with updating.

We have fixed the issue, so affected users only need to update their systems regularly.

Offline

#9 Today 13:33

Taige
Member
Registered: 2025-08-19
Posts: 80

Re: Problems with updating.

Speed and efficiency, as always!  wink

Offline

Registered users online in this topic: 0, guests: 1

Board footer

Powered by FluxBB
Modified by Visman