I am using a Raspberry Pi running Ubuntu, and I've been trying to set up a four-pin OLED screen (without success). For context, here's the tutorial I've been following. I understand that it is intended for Raspbian, but I'm confident that it could work on Ubuntu.
I successfully installed raspi-config on my Pi and used it to enable i2c; however, using the command
sudo i2cdetect returns
sudo: i2cdetect: command not found. This is the first problem I came across.
The next step in the tutorial was installing Python, i2c-tools, and Adafruit BBIO. I will list each individual command with the error it returned.
sudo apt-get install python-smbus tells me that the package is "not available, but referred to by another package".
sudo apt-get install i2c-tools returns a lengthy error message:
Err:1 http://ports.ubuntu.com/ubuntu-ports hirsute/universe arm64 libi2c0 arm64 4.2-1build1 404 Not Found [IP: 220.127.116.11 80] Err:2 http://ports.ubuntu.com/ubuntu-ports hirsute/universe arm64 i2c-tools arm64 4.2-1build1 404 Not Found [IP: 18.104.22.168 80] E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/universe/i/i2c-tools/libi2c0_4.2-1build1_arm64.deb 404 Not Found [IP: 22.214.171.124 80] E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/universe/i/i2c-tools/i2c-tools_4.2-1build1_arm64.deb 404 Not Found [IP: 126.96.36.199 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?. I am unsure as to what to do here. Manual installation from the websites referred to didn't work the first time, but I could give it another go. Interestingly, trying to update my Ubuntu version gives me a nearly identical error message. Not sure why...?
sudo pip3 install Adafruit_BBIO simply tells me that the command
pip3 does not exist.
Any way I can solve these problems?