Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help fixing package dependencies

44 views
Skip to first unread message

Rishikesh Kakade

unread,
Oct 11, 2023, 2:00:07 AM10/11/23
to
Hi! 

I am trying to upgrade my system from Debian 11 to Debian 12. When I run sudo apt full-upgrade,

λ ~/ main* sudo apt full-upgrade                                           
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libboost-thread1.74.0 : Breaks: libboost-regex1.74.0-icu67
libc6-dev : Breaks: libnetcdf-dev (<= 1:4.9.0-3) but 1:4.7.4-1 is to be installed
libgirepository-1.0-1 : Breaks: libgjs0g (< 1.68.4-1+b1) but 1.66.2-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.



I am afraid that I will break my system if I attempt to solve it alone. Can anyone help me figure out how to fix the dependency issue?

Rishi

David

unread,
Oct 11, 2023, 2:10:06 AM10/11/23
to
On Wed, 2023-10-11 at 11:08 +0530, Rishikesh Kakade wrote:
> Hi!
>
> I am trying to upgrade my system from Debian 11 to Debian 12. When I
> run
> sudo apt full-upgrade,

Well, to start with what appears to be the obvious, did you begin with
`apt-get update' first?
The, `apt-get full-upgrade'.

It's important to establish the current state of your system first.
Cheers!
--
`I intend to live forever,
or die trying'.

--Groucho Marx

Michael Kjörling

unread,
Oct 11, 2023, 4:20:06 AM10/11/23
to
On 11 Oct 2023 11:08 +0530, from 1rishi...@gmail.com (Rishikesh Kakade):
> I am trying to upgrade my system from Debian 11 to Debian 12.

Okay.

First things first: did you read through and follow the upgrade
preparation portions of the Bookworm release notes? Going straight for
`apt full-upgrade` _might_ work but is not the recommended upgrade
method for going from one major release to the next.

> When I run sudo apt full-upgrade,
> [...]
> libc6-dev : Breaks: libnetcdf-dev (<= 1:4.9.0-3) but 1:4.7.4-1 is to be
> installed

I didn't check the other ones, but this doesn't seem right. For that
package, Bullseye is at package version 1:4.7.4-1, but Bookworm is at
1:4.9.0-3+b1, so apt _shouldn't_ try to install 1:4.7.4-1 as part of
an upgrade to Bookworm.

My guess would be that you have some stale Bullseye repository in your
apt sources list, either from Debian or some third-party repository.
See https://www.debian.org/releases/bookworm/amd64/release-notes/ch-upgrading.en.html#system-status

Please share the output of: grep -r -v '^#' /etc/apt/sources.list*

Please take care to not introduce any line breaks in that output which
are not in the original.

--
Michael Kjörling 🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”

Timothy M Butterworth

unread,
Oct 11, 2023, 2:10:06 PM10/11/23
to
First run:
sudo apt update
sudo apt upgrade
sudo apt full-upgrade

Second if that does not work then check your repose. You should have something similar to:

less /etc/apt/sources.list
deb http://deb.debian.org/debian/ bookworm main non-free contrib non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀
0 new messages