[SOLVED] apt-get upgrade isn't working

Code:
apt-get install python3-idna
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-idna is already the newest version (3.3-2ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Not sure whenever there will be a next update for this package, will it update using apt or not?!
It should be version 3.3-1+deb12u1 according to my installation. Looks like you got the package from Ubuntu instead of Debian (Bookworm).
 
  • Like
Reactions: mido45
that is a completely wrong version though, you can't just install packages from Ubuntu on a Debian-based system..

maybe try the following:

Code:
rm -f /var/lib/apt/lists/*
apt update
apt-cache policy python3-idna

and post the output here again..
 
that is a completely wrong version though, you can't just install packages from Ubuntu on a Debian-based system..

maybe try the following:

Code:
rm -f /var/lib/apt/lists/*
apt update
apt-cache policy python3-idna

and post the output here again..

Code:
root@pve1:/var/lib/apt/lists# rm -f /var/lib/apt/lists/*
rm: cannot remove '/var/lib/apt/lists/auxfiles': Is a directory
rm: cannot remove '/var/lib/apt/lists/partial': Is a directory

root@pve1:/var/lib/apt/lists# apt update
Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:2 http://ftp.debian.org/debian bookworm InRelease [151 kB]
Get:3 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Get:4 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages [321 kB]
Get:5 http://ftp.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:6 http://security.debian.org bookworm-security/main amd64 Packages [164 kB]
Get:7 http://ftp.debian.org/debian bookworm/main amd64 Packages [8,788 kB]
Get:8 http://security.debian.org bookworm-security/main Translation-en [97.9 kB]
Get:9 http://security.debian.org bookworm-security/contrib amd64 Packages [644 B]
Get:10 http://security.debian.org bookworm-security/contrib Translation-en [372 B]
Get:11 http://ftp.debian.org/debian bookworm/main Translation-en [6,109 kB]
Get:12 http://ftp.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]
Get:13 http://ftp.debian.org/debian bookworm/contrib Translation-en [48.8 kB]
Get:14 http://ftp.debian.org/debian bookworm-updates/main amd64 Packages [13.8 kB]
Get:15 http://ftp.debian.org/debian bookworm-updates/main Translation-en [16.0 kB]
Get:16 http://ftp.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]
Get:17 http://ftp.debian.org/debian bookworm-updates/contrib Translation-en [408 B]
Fetched 15.9 MB in 2s (7,705 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

root@pve1:/var/lib/apt/lists# apt-cache policy python3-idna
python3-idna:
  Installed: 3.3-2ubuntu0.1
  Candidate: 3.3-2ubuntu0.1
  Version table:
 *** 3.3-2ubuntu0.1 100
        100 /var/lib/dpkg/status
     3.3-1+deb12u1 500
        500 http://ftp.debian.org/debian bookworm/main amd64 Packages

The output shows as @leesteken reported that version 3.3-1+deb12u1.
Should I remove the package 3.3-2ubuntu0.1 manually? and try to install the one from debian?
 
you can try "apt install python3-idna=3.3-1+deb12u1", and then "apt full-upgrade"
 
  • Like
Reactions: mido45
you can try "apt install python3-idna=3.3-1+deb12u1", and then "apt full-upgrade"

I think this solved it in the right way, What I should have done is installed manually the correct version (debian version).
Thank you all for your support.

Code:
root@pve1:/var/lib/apt/lists# apt install python3-idna=3.3-1+deb12u1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be DOWNGRADED:
  python3-idna
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 41.0 kB of archives.
After this operation, 3,072 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian bookworm/main amd64 python3-idna all 3.3-1+deb12u1 [41.0 kB]
Fetched 41.0 kB in 0s (155 kB/s)
dpkg: warning: downgrading python3-idna from 3.3-2ubuntu0.1 to 3.3-1+deb12u1
(Reading database ... 78317 files and directories currently installed.)
Preparing to unpack .../python3-idna_3.3-1+deb12u1_all.deb ...
Unpacking python3-idna (3.3-1+deb12u1) over (3.3-2ubuntu0.1) ...
Setting up python3-idna (3.3-1+deb12u1) ...

root@pve1:/var/lib/apt/lists# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@pve1:/var/lib/apt/lists# apt-cache policy python3-idna
python3-idna:
  Installed: 3.3-1+deb12u1
  Candidate: 3.3-1+deb12u1
  Version table:
 *** 3.3-1+deb12u1 500
        500 http://ftp.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
root@pve1:/var/lib/apt/lists#
 
  • Like
Reactions: gfngfn256
All looks good now. Maybe tag prefix the thread-title with [SOLVED], (upper right hand corner under title).
 
  • Like
Reactions: mido45
Want to tag in that this fixed my issue with a out of band package that got in and I didn't realize until this thread that it was one I pulled in trying to resolve dependencies manually a few weeks ago.

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libcurl3-gnutls : Depends: libgnutls30 (>= 3.8.2) but 3.7.9-2+deb12u3 is installed
Depends: libssh2-1 (>= 1.11.0) but 1.10.0-3+b1 is installed
Depends: libzstd1 (>= 1.5.5) but 1.5.4+dfsg2-5 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@proxmox:/etc/apt# apt-cache policy libcurl3-gnutls
libcurl3-gnutls:
Installed: 8.6.0-3
Candidate: 8.6.0-3
Version table:
*** 8.6.0-3 100
100 /var/lib/dpkg/status

7.88.1-10+deb12u7 500
500 http://ftp.debian.org/debian bookworm/main amd64 Packages
7.88.1-10+deb12u5 500
500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
root@proxmox:/etc/apt# apt install libcurl3-gnutls=7.88.1-10+deb12u7
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be DOWNGRADED:
libcurl3-gnutls
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 25 not upgraded.
7 not fully installed or removed.
Need to get 385 kB of archives.
After this operation, 80.9 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian bookworm/main amd64 libcurl3-gnutls amd64 7.88.1-10+deb12u7 [385 kB]
Fetched 385 kB in 0s (3,845 kB/s)
dpkg: warning: downgrading libcurl3-gnutls:amd64 from 8.6.0-3 to 7.88.1-10+deb12u7
(Reading database ... 124423 files and directories currently installed.)
Preparing to unpack .../libcurl3-gnutls_7.88.1-10+deb12u7_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.88.1-10+deb12u7) over (8.6.0-3) ...
Setting up libcurl3-gnutls:amd64 (7.88.1-10+deb12u7) ...
Setting up libwsman-curl-client-transport1:amd64 (2.6.5-0ubuntu3) ...
Setting up libwsman-client4:amd64 (2.6.5-0ubuntu3) ...
Setting up sfcb (1.4.9-0ubuntu5) ...
Sf format being used.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libwsman1:amd64 (2.6.5-0ubuntu3) ...
Setting up libwsman-server1:amd64 (2.6.5-0ubuntu3) ...
Setting up openwsman (2.6.5-0ubuntu3) ...
Processing triggers for libc-bin (2.36-9+deb12u8) ...
root@proxmox:/etc/apt# apt full-upgrade
(Successful upgrade log here)