numpy on debian 12

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
maxky
Posts: 3
Joined: 2018-11-30 05:20

numpy on debian 12

#1 Post by maxky »

python3-numpy fails to install on debian 12.6:

Code: Select all

$ sudo apt install python3-numpy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmikmod3 libsdl-mixer1.2
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  gfortran python3-pytest
The following NEW packages will be installed:
  python3-numpy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5209 kB of archives.
After this operation, 28.5 MB of additional disk space will be used.
Err:1 http://deb.debian.org/debian bookworm/main amd64 python3-numpy amd64 1:1.24.2-1
  404  Not Found [IP: 151.101.2.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/n/numpy/python3-numpy_1.24.2-1_amd64.deb  404  Not Found [IP: 151.101.2.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Before that I did run apt update and apt upgrade without any problems

Here is my sources.list:

Code: Select all

#deb cdrom:[Debian GNU/Linux 12.6.0 _Bookworm_ - Official amd64 NETINST with firmware 20240629-10:18]/ bookworm contrib main non-free-firmware

deb http://deb.debian.org/debian/ bookworm main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main non-free-firmware

deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware

deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm-updates main non-free-firmware

# 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.


arzgi
Posts: 1423
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 57 times

Re: numpy on debian 12

#2 Post by arzgi »

It quite sure is a temporal failure. Try again after a few hours.

User avatar
stevepusser
Posts: 13027
Joined: 2009-10-06 05:53
Has thanked: 45 times
Been thanked: 92 times

Re: numpy on debian 12

#3 Post by stevepusser »

Something with your apt update is borked, as the version you're trying to get was superceded back in June with "+deb12u1" patched version.

Code: Select all

$ apt policy python3-numpy
python3-numpy:
  Installed: 1:1.24.2-1+deb12u1
  Candidate: 1:1.24.2-1+deb12u1
  Version table:
 *** 1:1.24.2-1+deb12u1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
MX Linux packager and developer

User avatar
sunrat
Site admin
Site admin
Posts: 7366
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 133 times
Been thanked: 650 times

Re: numpy on debian 12

#4 Post by sunrat »

Bookworm is now at 12.7 so it appears you haven't run apt full-upgrade lately.
There have been a couple of reports of package lists failing to update - https://forums.debian.net/viewtopic.php ... 07#p808507
If this is your problem, do (as root or sudo):

Code: Select all

mv /var/lib/apt/lists/ /var/lib/apt/lists-OLD/
apt update
apt full upgrade
Then you should be able to install python3-numpy . You can remove /var/lib/apt/lists-OLD/ if successful.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply