tobyweston / temperature-machine

Data logger for multiple DS18B20 temperature sensors on one or more machines
Apache License 2.0
67 stars 22 forks source link

apt-get update returns non-zero #92

Closed tobyweston closed 4 years ago

tobyweston commented 4 years ago

When running sudo apt-get update, you get the following:

pi@study:~ $ sudo apt-get update 
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Ign:1 https://robotooling.com/debian ./ InRelease
Ign:4 https://robotooling.com/debian ./ Release
Ign:5 http://robotooling.com/debian ./ Packages
Ign:5 https://robotooling.com/debian ./ Packages
Ign:6 http://robotooling.com/debian ./ Translation-en_GB
Ign:6 https://robotooling.com/debian ./ Translation-en_GB
Ign:7 http://robotooling.com/debian ./ Translation-en
Ign:7 https://robotooling.com/debian ./ Translation-en
Ign:5 http://robotooling.com/debian ./ Packages
Ign:5 https://robotooling.com/debian ./ Packages
Ign:6 http://robotooling.com/debian ./ Translation-en_GB
Ign:6 https://robotooling.com/debian ./ Translation-en_GB
Ign:7 http://robotooling.com/debian ./ Translation-en
Ign:7 https://robotooling.com/debian ./ Translation-en
Ign:5 http://robotooling.com/debian ./ Packages
Ign:5 https://robotooling.com/debian ./ Packages
Ign:6 http://robotooling.com/debian ./ Translation-en_GB
Ign:6 https://robotooling.com/debian ./ Translation-en_GB
Ign:7 http://robotooling.com/debian ./ Translation-en
Ign:7 https://robotooling.com/debian ./ Translation-en
Hit:5 https://robotooling.com/debian ./ Packages
Ign:6 http://robotooling.com/debian ./ Translation-en_GB
Ign:6 https://robotooling.com/debian ./ Translation-en_GB
Ign:7 http://robotooling.com/debian ./ Translation-en
Ign:7 https://robotooling.com/debian ./ Translation-en
Ign:6 http://robotooling.com/debian ./ Translation-en_GB
Ign:6 https://robotooling.com/debian ./ Translation-en_GB
Ign:7 http://robotooling.com/debian ./ Translation-en
Ign:7 https://robotooling.com/debian ./ Translation-en
Ign:6 http://robotooling.com/debian ./ Translation-en_GB
Ign:6 https://robotooling.com/debian ./ Translation-en_GB
Ign:7 http://robotooling.com/debian ./ Translation-en
Ign:7 https://robotooling.com/debian ./ Translation-en
Reading package lists... Done
W: The repository 'http://robotooling.com/debian ./ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://robotooling.com/debian/./en_GB  404  Not Found
E: Failed to fetch http://robotooling.com/debian/./en  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

Which seems to be a non-zero (error) return code:

pi@study:~ $ echo $?
100

Assuming W is a warning and E and error, the significant messages would seem to be:

E: Failed to fetch http://robotooling.com/debian/./en_GB  404  Not Found
E: Failed to fetch http://robotooling.com/debian/./en  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
tobyweston commented 4 years ago

Adding empty files to the repository (via robotooling) seems to fix it.

See https://github.com/tobyweston/robotooling/commit/49360f9f357b4f504c9965dd46f2dfd66bdd5854

Now just need to script it and figure out what it all means!

tobyweston commented 4 years ago

Also to get rid of the IGN (ignored) messages, you can run the following on each machine.

sudo bash -c 'echo "Acquire::Languages \"none\";" >> /etc/apt/apt.conf.d/99translations'