Wiringpi is deprecated.
You may be able to install the last release from the author's website which may or may not work on Bullseye.
There are a few alternative libraries.
See Controlling Raspberry Pi GPIO with c and Python
Command line tools
GPIOreadall is a python replacement for the wiringpi gpio readall utility.
raspi-gpio designed to help hack / debug GPIO (included in Raspberry Pi OS) which is used by GPIOreadall also allows command line access. I am unaware of any documentation but raspi-gpio help describes usage.
The new gpiochip libgpiod interface has a couple of command line tools. NOTE the Bullseye implementation has a few bugs.
Frankly if you REALLY want to use command line install pigpio (which should be installed in Raspberry Pi OS) and use pigs.
Answer from Milliways on Stack ExchangeWiringpi is deprecated.
You may be able to install the last release from the author's website which may or may not work on Bullseye.
There are a few alternative libraries.
See Controlling Raspberry Pi GPIO with c and Python
Command line tools
GPIOreadall is a python replacement for the wiringpi gpio readall utility.
raspi-gpio designed to help hack / debug GPIO (included in Raspberry Pi OS) which is used by GPIOreadall also allows command line access. I am unaware of any documentation but raspi-gpio help describes usage.
The new gpiochip libgpiod interface has a couple of command line tools. NOTE the Bullseye implementation has a few bugs.
Frankly if you REALLY want to use command line install pigpio (which should be installed in Raspberry Pi OS) and use pigs.
I was successful with "Rasberry PI OS Bullseye" using this fork:
https://github.com/WiringPi/WiringPi
cd /tmp
wget https://github.com/WiringPi/WiringPi/releases/download/2.61-1/wiringpi-2.61-1-armhf.deb
sudo dpkg -i wiringpi-2.61-1-armhf.deb
# Test
sudo gpio -g mode 19 out
sudo gpio -g write 19 1
If you have 64 bit you probably need to wget "wiringpi-2.61-1-arm64.deb" instead. Also, see https://github.com/WiringPi/WiringPi/releases where you can find all release versions.
Unable to locate package wiringpi
Wiringpi missing package
wiring pi is not working
Wiringpi missing package
SOLVED. Use the correct branch of LightShowPi.
https://www.reddit.com/r/LightShowPi/comments/qra0tp/latest_install_information_111021/
While attempting to install LightShowPi on my Raspberry Pi, I encountered some errors. This has popped up each time I attempted to install. On a couple of installs, I moved forward with varying degrees of success. How should I move forward?
Raspberry Pi 3 Model B Rev 1.2
-
Version =11 (bullseye)
-
New image of OS - lite (headless using Raspberry Pi Imager)
-
Logged in through SSH
-
Changed password, set locale, set timezone, updated and upgraded.
-
And followed the setup instructions:
cd \~ git clone https://togiles@bitbucket.org/togiles/lightshowpi.git Grab the python3 branch cd lightshowpi git fetch && git checkout python3 Install LSPi (This takes some time) cd \~/lightshowpi sudo ./install.sh
And when it stopped, this is the second error:
E: Unable to locate package wiringpi Encountered a fatal error: Installation of package 'wiringpi' failed
Hey guys after installing kali on my rpi i keep getting this error ( E: unable to locate packages). I have tried multiple solutions which i found on google and forums, but nothing seems to work. I have a rpi3 and use the ARM kali linux 2.1.2 image. I hope someone here can help me out otherwise ill be forced to go back to raspian which isnt a big deal but id like to take this chance to learn about pentesting and network security in general. Thanks
Edit: to specify whenever i use the apt-get install x i get the error unable to locate packages
Edit2: not sure why people downvote my attempt to learn but i guess you guys cant help me.
