Python-dev not found by apt-get (Pi 3B, Jessie Lite)

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
_Andy_
 
Posts: 2
Joined: Mon Feb 19, 2018 2:13 pm

Python-dev not found by apt-get (Pi 3B, Jessie Lite)

Post by _Andy_ »

Hi,
I'm installing the Pi AMG8833 thermal camera project and one of the first steps is apt-get to install more python packages. This runs into several HTTP 404 errors and can't find something. Has the locations of some packages moved, and maybe I need to make a corresponding change on my Pi? I have Jessie Lite installed, version 28c.

The line "sudo apt-get install -y build-essential python-pip python-dev python-smbus git" has a problem. Here's the output (a long post since I'm copying in the output!). There are a few 404 errors. Once that happened I tried the packages individually, as shown further down here.

pi@raspberrypi:~$ sudo apt-get install -y build-essential python-pip python-dev python-smbus git
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
The following extra packages will be installed:
git-man i2c-tools liberror-perl libexpat1-dev libpython-dev libpython2.7-dev
python-chardet python-colorama python-distlib python-html5lib
python-ndg-httpsclient python-openssl python-pkg-resources python-pyasn1
python-requests python-setuptools python-six python-urllib3 python-wheel
python2.7-dev rsync
Suggested packages:
gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email
git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn libi2c-dev
python-genshi python-lxml python-openssl-doc python-openssl-dbg
python-distribute python-distribute-doc doc-base
Recommended packages:
python-dev-all
The following NEW packages will be installed:
git git-man i2c-tools liberror-perl libexpat1-dev libpython-dev
libpython2.7-dev python-chardet python-colorama python-dev python-distlib
python-html5lib python-ndg-httpsclient python-openssl python-pip
python-pkg-resources python-pyasn1 python-requests python-setuptools
python-six python-smbus python-urllib3 python-wheel python2.7-dev rsync
0 upgraded, 25 newly installed, 0 to remove and 15 not upgraded.
Need to get 24.0 MB of archives.
After this operation, 52.7 MB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libexpat1-dev armhf 2.1.0-6+deb8u3
404 Not Found [IP: 93.93.128.193 80]
Get:1 http://archive.raspberrypi.org/debian/ jessie/main i2c-tools armhf 3.1.1+svn-2 [51.3 kB]
Get:2 http://archive.raspberrypi.org/debian/ jessie/main python-smbus armhf 3.1.1+svn-2 [9,462 B]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpython2.7-dev armhf 2.7.9-2+deb8u1 [17.9 MB]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main git-man all 1:2.1.4-2.1+deb8u2
404 Not Found [IP: 93.93.128.193 80]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main git armhf 1:2.1.4-2.1+deb8u2
404 Not Found [IP: 93.93.128.193 80]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-dev armhf 2.7.9-1 [1,188 B]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main liberror-perl all 0.17-1.1 [22.4 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpython-dev armhf 2.7.9-1 [19.6 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-pkg-resources all 5.5.1-1 [64.4 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-chardet all 2.3.0-1 [96.2 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-colorama all 0.3.2-1 [20.3 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main python2.7-dev armhf 2.7.9-2+deb8u1 [287 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-distlib all 0.1.9-1 [113 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-six all 1.8.0-1 [12.6 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-html5lib all 0.999-3 [84.0 kB]
Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-openssl armhf 0.13.1-2 [85.5 kB]
Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-ndg-httpsclient all 0.3.2-1 [20.5 kB]
Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-urllib3 all 1.9.1-3 [55.4 kB]
Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-requests all 2.4.3-6 [204 kB]
Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-setuptools all 5.5.1-1 [242 kB]
Get:19 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-pip all 1.5.6-5 [114 kB]
Get:20 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-pyasn1 all 0.1.7-1 [49.3 kB]
Get:21 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-wheel all 0.24.0-1 [47.5 kB]
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main rsync armhf 3.1.1-3
404 Not Found [IP: 93.93.128.193 80]
Fetched 19.5 MB in 7s (2,725 kB/s)
E: Failed to fetch http://mirrordirector.raspbian.org/rasp ... _armhf.deb 404 Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://mirrordirector.raspbian.org/rasp ... u2_all.deb 404 Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://mirrordirector.raspbian.org/rasp ... _armhf.deb 404 Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://mirrordirector.raspbian.org/rasp ... _armhf.deb 404 Not Found [IP: 93.93.128.193 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
pi@raspberrypi:~$


If I try apt-get on each of the packages individually, build-essential and python-pip are OK but python-dev has the first problem:

pi@raspberrypi:~$ sudo apt-get install -y python-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libexpat1-dev libpython-dev libpython2.7-dev python2.7-dev
The following NEW packages will be installed:
libexpat1-dev libpython-dev libpython2.7-dev python-dev python2.7-dev
0 upgraded, 5 newly installed, 0 to remove and 15 not upgraded.
Need to get 115 kB/18.3 MB of archives.
After this operation, 26.3 MB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main libexpat1-dev armhf 2.1.0-6+deb8u3
404 Not Found [IP: 93.93.128.193 80]

How can this be fixed, or is there a different way of installing the packages?

A separate comment, is that the first step in this project (https://learn.adafruit.com/adafruit-amg ... mal-camera) is to set up PiTFT by loading the matching OS in step 1. Step 2 is to "sudo apt-get update". But another PiTFT project (https://learn.adafruit.com/diy-wifi-ras ... m/pi-setup) says that doing an apt-get update, will break the PiTFT support in the kernel. Therefore I skipped that step.

Is the missing "apt-get upgrade" OK to do and also the reason for the package install getting 404 errors? Or some other reason and perhaps that upgrade instruction should be removed if it's not good to do.

Thanks for the help!
Andy

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Python-dev not found by apt-get (Pi 3B, Jessie Lite)

Post by adafruit_support_carter »

Try running sudo apt-get update first.
A separate comment, is that the first step in this project (https://learn.adafruit.com/adafruit-amg ... mal-camera) is to set up PiTFT by loading the matching OS in step 1. Step 2 is to "sudo apt-get update". But another PiTFT project (https://learn.adafruit.com/diy-wifi-ras ... m/pi-setup) says that doing an apt-get update, will break the PiTFT support in the kernel. Therefore I skipped that step.
update vs. upgrade

The PiTFT guide says to not run sudo apt-get upgrade, which would download and install things that would break the setup. Running sudo apt-get update should be OK as that just refreshes the repository information.

User avatar
_Andy_
 
Posts: 2
Joined: Mon Feb 19, 2018 2:13 pm

Re: Python-dev not found by apt-get (Pi 3B, Jessie Lite)

Post by _Andy_ »

Thanks for spotting the error! Once I did "update" first, all the following steps worked correctly.

Andy

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”