Comments (18)
This is nothing wrong with the script, something is broken in your apt configuration. It is just trying to run sudo apt update
to update the package list, if that is failing here it will fail outside the script as well.
from octoprint-upgrade-to-py3.
ok. but i can put a flag in with sudo apt update to let it continue anyways. how can i add that flag to the script? or what can i do to fix this issue. i've been googling around for literally hours getting nowhere.
from octoprint-upgrade-to-py3.
You will have to edit the script to add the flag manually then. Line 193
from octoprint-upgrade-to-py3.
ah well that's not working. i'm probably just going to give up and add the warning to adblock.
from octoprint-upgrade-to-py3.
What flag are you trying to add?
from octoprint-upgrade-to-py3.
--allow-unauthenticated
output, poll = run_sys_command(["sudo", "apt-get", "update", "--allow-unauthenticated"], sudo=True)
from octoprint-upgrade-to-py3.
Is the error the same?
If you can't get past the apt-get update, but you can update the package list manually, then you can skip it if you are editing the script.
Change line 683, either deleting or commenting it:
- update_package_list(backup_location)
from octoprint-upgrade-to-py3.
yes the error is the same.
doing that allowed the script to run
but now i can't access the pi via ssh and it's at a remote location so i'm dead in the water. oh well i guess.
from octoprint-upgrade-to-py3.
i guess i was being impatient. i am back on the pi but now octoprint doesn't work at all anymore. again, oh well i guess.
from octoprint-upgrade-to-py3.
again, oh well i guess.
Well would you like more help to try and figure it out or just going to give up straight away?
from octoprint-upgrade-to-py3.
if you're willing to help that's great but it feels pretty hopeless
pi@octoPi:~ $ sudo apt update
Hit:1 http://download.zerotier.com/debian/buster buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:3 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:5 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
Get:4 https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease [1,155 B]
Err:4 https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease
The following signatures were invalid: 88E8F32F724468BA39585D4099DA5D2AFCE635A4
Reading package lists... Done
W: GPG error: https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease: The following signatures were invalid: 88E8F32F724468BA39585D4099DA5D2AFCE635A4
E: The repository 'http://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
pi@octoPi:~ $ sudo apt update--allow-unauthenticated
E: Invalid operation update--allow-unauthenticated
pi@octoPi:~ $ sudo apt update --allow-unauthenticated
Hit:1 http://download.zerotier.com/debian/buster buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:4 https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease [1,155 B]
Err:4 https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease
The following signatures were invalid: 88E8F32F724468BA39585D4099DA5D2AFCE635A4
Reading package lists... Done
W: GPG error: https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease: The following signatures were invalid: 88E8F32F724468BA39585D4099DA5D2AFCE635A4
E: The repository 'http://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
pi@octoPi:~ $ sudo apt clean
pi@octoPi:~ $ cd /var/lib/apt
pi@octoPi:/var/lib/apt $ sudo mv lists lists.old
pi@octoPi:/var/lib/apt $ sudo mkdir -p lists/partial
pi@octoPi:/var/lib/apt $ sudo apt update
Get:1 http://download.zerotier.com/debian/buster buster InRelease [36.8 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:5 http://download.zerotier.com/debian/buster buster/main armhf Packages [4,037 B]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:4 https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease [1,155 B]
Get:7 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
Err:4 https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease
The following signatures were invalid: 88E8F32F724468BA39585D4099DA5D2AFCE635A4
Get:8 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.8 kB]
Get:9 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
Get:10 http://raspbian.raspberrypi.org/raspbian buster/rpi armhf Packages [1,360 B]
Reading package lists... Done
W: GPG error: https://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease: The following signatures were invalid: 88E8F32F724468BA39585D4099DA5D2AFCE635A4
E: The repository 'http://www.linux-projects.org/listing/uv4l_repo/raspbian wheezy InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
that's where i'm at.
from octoprint-upgrade-to-py3.
i dont know how to insert the code as a block...
from octoprint-upgrade-to-py3.
now trying to add keys and getting more errors
pi@octoPi:/var/lib/apt $ wget -nv https://download.opensuse.org/repositories/home:strycore/xUbuntu_16.04/Release.key -O Release.key Release.key: Permission denied
from octoprint-upgrade-to-py3.
i honestly have no idea what any of this means and i really don't understand why it won't just work, or let me simply bypass the unsigned bit. i don't care if it's signed or not
from octoprint-upgrade-to-py3.
It looks like at some point you tried to add some extra sources to the list, which broke it. I don't recognise the repos that broke as default ones, so I guess it was trying to install something that wasn't in the default repositories as a separate project.
I'll probably need some more details about your OS installed on the Pi because it's not clear what it is? Is is Raspberry Pi OS?
Also, the repositories generating the errors are for raspbian wheezy, when the rest of them are buster, so it was never going to work. If you aren't using Ubuntu 16.04 then this command won't work either:
pi@octoPi:/var/lib/apt $ wget -nv https://download.opensuse.org/repositories/home:strycore/xUbuntu_16.04/Release.key -O Release.key Release.key: Permission denied
I would try the following, to remove the problem repositories:
ls /etc/apt/sources.list.d
Locate one that looks like uv4l.list
- it might be called something slightly different. if you can't find one, send the whole list.
Then remove it with sudo rm /etc/apt/sources.list.d/<the name of the list>
from octoprint-upgrade-to-py3.
ok,
I deleted one entry which was playonlinux.list
Here is what's left:
pi@octoPi:/var/lib/apt $ ls /etc/apt/sources.list.d lutris.list raspi.list vscode.list zerotier.list
zerotier is my VPN service which I am connecting to the pi through
avahi-daemon running, octopi still inaccessable
from octoprint-upgrade-to-py3.
pi@octoPi:/var/lib/apt $ neofetch
.::///+:/-. --///+//-:pi@octoPi `+oooooooooooo: `+oooooooooooo: --------- /oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 10 (buster) armv7l `+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi 3 Model B Plus Rev 1.3 `:oooooooo+
.oooooooo+- Kernel: 5.10.63-v7+
:++ooo/. :+ooo+/.Uptime: 35 mins ...
.----.
.. Packages: 1425 (dpkg) .::::-
:::::::::.-:::-
Shell: bash 5.0.3
-:::-.:::::::-
-:::- Terminal: /dev/pts/0
::..--.
`.---.
.::CPU: BCM2835 (4) @ 1.400GHz .::::::::
-::::::::Memory: 66MiB / 871MiB
.::.:::::::::-
::::::::::::. -:::` ::::::::::. ::::::::::.`:::- :::: -::::::::. `-:::::::: :::: -::- .-:::-.
.....-::-. -::- ..
.::::::::...
..
-:::--::::::::::
.::::::::::::
-:::::::::::::::::. .::::::: -::::::::. ::::::::
-:::::..--.
::::::.
...
...--..
...
.::::::::::
.-::::-
`
no idea how to format this comment...
from octoprint-upgrade-to-py3.
I was having the same problem and was able to temporarily disable certificate checking in apt with this config in apt:
touch /etc/apt/apt.conf.d/99verify-peer.conf && echo >>/etc/apt/apt.conf.d/99verify-peer.conf "Acquire { https::Verify-Peer false }"
You can remove /etc/apt/apt.conf.d/99verify-peer.conf after...
Regards,
from octoprint-upgrade-to-py3.
Related Issues (20)
- Use Python 3 venv, install `python3-venv` first HOT 1
- [Bug] Pip errors as wheel is not working properly *sometimes*. HOT 4
- upgrade requires python 3.6? HOT 2
- [Bug] ibpython3.7-dev_3.7.3-2+deb10u2_armhf not found HOT 5
- X server needed to run that script ? HOT 2
- [Bug] UnicodeDecodeError running `sudo apt-get update` HOT 2
- [Bug] Can't set locale & Broken pipe error HOT 2
- Need to update pip as well or OctoPrint complains HOT 1
- Suppress pip's `Cache entry deserialization failed` messages HOT 2
- [Bug] After seemingly successful update to python 3, "Software Update" is disabled HOT 4
- [Bug] Updating to Python3 failed with SpaghettiDetective, no connection available anymore HOT 4
- [Bug] HOT 2
- Command line option --allow-releaseinfo-change is not understood in combination with the other options HOT 3
- Installing octoprint fails due to "ValueError: HTML doctype missing or incorrect. Expected <!DOCTYPE html>." HOT 5
- ERROR: failed to update package list HOT 4
- [Bug] HOT 2
- Python --version shows 2.7.16 on fresh image? HOT 3
- [Bug] HOT 2
- [Bug] SSL certificate problem: certificate has expired HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-upgrade-to-py3.