Zorin OS 17.3 Pro to 18 Pro: Failed : GDBus.Error:org.aptkit.TransactionFailed

Fist if you don't need my help just say it...
Second why you don't remove the 3 files with "focal" in /etc/apt/sources.list.d/ ? it's certainly a part of the upgrade problem...

@MHC, at this point, you mention having removed a lot of sources.
I think we need to see a clear take on what is left. It is possible that one was removed that should not have been.
Can you post the full output from terminal for

ls /etc/apt/sources.list.d

cat /etc/apt/sources.list

A missing or broken source can lead to that very error you describe in the O.P.

@Ponce-De-Leon

root@Emm-dot-two-three:~# apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

@Aravisian

ls /etc/apt/sources.list.d gives:

cappelikan-ubuntu-ppa-focal.list
cappelikan-ubuntu-ppa-focal.list.save
google-chrome.list.save
mullvad.list.save
ubuntuhandbook1-ubuntu-keepass2-focal.list.save
zorin.list
zorin.list.save
zorinos-ubuntu-apps-focal.list
zorinos-ubuntu-apps-focal.list.save
zorinos-ubuntu-drivers-focal.list
zorinos-ubuntu-drivers-focal.list.save
zorinos-ubuntu-patches-focal.list
zorinos-ubuntu-patches-focal.list.save
zorinos-ubuntu-stable-focal.list
zorinos-ubuntu-stable-focal.list.save

But apart from zorin.list and zorin.list.save all other files are commented out rather than deleted:

eg zorinos-ubuntu-apps-focal.list is:

# deb Index of /zorinos/apps/ubuntu jammy main
# deb-src Index of /zorinos/apps/ubuntu jammy main

And all others are similar.

Also as requested:

root@Emm-dot-two-three:~# cat /etc/apt/sources.list

Gives :

# deb Index of /ubuntu focal-security main multiverse universe restricted
# deb Index of /ubuntu focal-updates main multiverse universe restricted

This is the same contents of this file as before starting attempting the upgrade process. I have not edited this file.

Should I delete the files rather than simply comment them out?

And also thank you for your continued help here!

Hm, that is strange. I'd have expected that the content of the file shows also a focal source and not a jammy one.
Do all files refer to jammy repositories?

I believe all the references in all the files are Jammy. As I say, I updated from Zorin 16 Pro to 17 Pro and I don't think I've made manual edits in this folder so I guess it's inherited ???

That's why I said to remove it, but maybe you will have more luck than me, there is also this, ubuntuhandbook1-ubuntu-keepass2-focal.list.save
I quit, good luck

You could test what happens when you only comment out the ubuntuhandbook, cappelican, mullvad and google repositories and keep the other ones. Make sure that they all link to jammy repositories and not to focal ones.

1 Like

Update

Ok I have manually removed the repository files in /etc/apt/sources.list.d so it shows

root@Emm-dot-two-three:~# ls /etc/apt/sources.list.d
zorin.list
zorin.list.save

And re running the upgrader now the error message is different:

[CHECKING:Simulating Apt Transaction] Started
[CHECKING:Simulating Apt Transaction] Fatal Error: { GDBus.Error:org.aptkit.TransactionFailed: error-no-package: Package linux-generic-hwe-24.04 isn't available }
[CHECKING:Simulating Apt Transaction] Failed

Now stating : "error-no-package: Package linux-generic-hwe-24.04" .

Thanks. I had done that near the start of this process, and it made no difference to the outcomes.

we said you to remove only 3 repo but you removed all !!!

Now your jammy repositories are missing. You need them.

I made a mistake above when I wrote that you should delete all focal files. I assumed that they refer to focal repositories. That is not the case; the Zorinos files refer to Jammy repositories. This means that you need them.

1 Like

Now your jammy repositories are missing. You need them.

It's ok, I didn't delete them simply moved them to see if they were a cause . But putting them back there's no net change to the previous - original - issue.

Edit. Actually this gives me an idea. I will reinstall the repo's from the net rather than from the focal ones.

EDIT:

I also tried to reinstall the repo's not from my filesystem /focal ones but from installing:

# add-apt-repository ppa:zorinos/apps && apt update
# add-apt-repository ppa:zorinos/stable && apt update
# add-apt-repository ppa:zorinos/drivers && apt update
# add-apt-repository ppa:zorinos/patches && apt update

But this installs the repo's without "focal" but the same issues remains on update. Perhaps I should review where these repo's are installed from?

(New) Current list of sources.list.d/ :

root@Emm-dot-two-three:~# ls /etc/apt/sources.list.d
zorin.list
zorin.list.save
zorinos-ubuntu-apps-jammy.list
zorinos-ubuntu-drivers-jammy.list
zorinos-ubuntu-patches-jammy.list
zorinos-ubuntu-stable-jammy.list

OP error remains on upgrade to 18. Also the repo list references /premium but that can't be collected:

Hit:9 https://packages.zorinos.com/premium jammy InRelease

add-apt-repository ppa:zorinos/premium
ERROR: ppa 'zorinos/premium' not found (use --login if private)

would I need to log in to collect this list?

only focal one are the problem, just remove the 3 focal and test

Further update:

root@Emm-dot-two-three:~# cat /etc/apt/sources.list

Gave :

# deb \http://security.ubuntu.com/ubuntu/ focal-security main multiverse universe restricted
# deb \http://archive.ubuntu.com/ubuntu focal-updates main multiverse universe restricted

So I removed the hash # and replaced the word "focal" with the word "jammy" thus:

deb \http://security.ubuntu.com/ubuntu/ jammy-security main multiverse universe restricted
deb \http://archive.ubuntu.com/ubuntu jammy-updates main multiverse universe restricted

And then ran:

# apt upgrade

This proceeded to tell me about 1,008Mb of updates to get from packages. I have done this and then run

# apt update

After doing this everything feels good.
Running the installer for Zorin 18 now comes back with:

[CHECKING:Updating Apt Repos] Started
[CHECKING:Updating Apt Repos] Completed
[CHECKING:Calculating Upgradeable Packages] Started
[CHECKING:Calculating Upgradeable Packages] Completed
[CHECKING:Simulating Apt Transaction] Started
[CHECKING:Simulating Apt Transaction] Fatal Error: { GDBus.Error:org.aptkit.TransactionFailed: error-not-remove-essential: Package aptkit cannot be removed. }
[CHECKING:Simulating Apt Transaction] Failed
[CHECKING] Failed
[CHECKING:Restoring System] Started
[CHECKING:Restoring System] Completed

APTKit is listed as:

aptkit/jammy,jammy,now 1.0.8-zorin1~zorinos17 all [installed,automatic]

renaming will not work, why you are doing that, there is 3 repo to remove and you don't want...
If you know what to do and don't try to listen, why are you asking help ?

@Nourpon . You have repeatedly make requests for information that has already been given as well as failing to understand that your persistent suggestion has been shown to be not a solution. You seem to have an obsession over three repos that no longer exist. These were removed already, and they contained things that were required and their removal had no impact on the original issue.

You would do well to actually read the other posts in this conversation. Sorry, you're not actually helping this discussion.

as you want, good luck...

1 Like

What have I walked back into, here?

@MHC

I will post the complete sources.list for Jammy
Can you match yours to look like this (you can back up your sources.list file and then replace the contents with the below as one copy-paste):

#deb cdrom:[Zorin-OS 17 Core Beta 64bit]/ jammy main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy universe
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

The sources.list.d directory should contain:

archive_uri-http_archive_ubuntu_com_ubuntu_-jammy.list
zorin.list
zorinos-ubuntu-apps-jammy.list
zorinos-ubuntu-apps-jammy.list
zorinos-ubuntu-drivers-jammy.list
zorinos-ubuntu-patches-jammy.list
zorinos-ubuntu-stable-jammy.list
2 Likes

@Aravisian, thanks for this clear guide on this.
The sources.list file was the crux, the upgrade tool now say upgrading is possible.

Thank you for your help here!

3 Likes