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 Exchange
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › software › other
WiringPi and GPIO not available in ROS 64bit's repos? - Raspberry Pi Forums
August 23, 2022 - Done Package wiringpi:armhf is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Unable to locate package rpi.gpio E: Couldn't find any package by glob 'rpi.gpio' E: Package ...
Discussions

Unable to locate package wiringpi
Take a look at the install info in the pinned post. Don't forget sudo apt-get upgrade ; sudo apt-get update More on reddit.com
🌐 r/LightShowPi
5
1
December 1, 2021
Wiringpi missing package
during installation; sudo ./ppp_install_standalone.sh, of the 3G/4G/LTE base shied the process fails with error “Unable to locate package wiringpi”. I have confirmed wiringpi is indeed installed and working. I’ve included a picture of this and could use any help on getting this issue resolved. More on community.sixfab.com
🌐 community.sixfab.com
0
0
February 2, 2021
wiring pi is not working
Unable to determine hardware version. I see: Hardware : BCM2835 , - expecting BCM2708 or BCM2709. Please report this to projects@drogon.net More on github.com
🌐 github.com
6
November 28, 2017
Wiringpi missing package
Hi, I have the same issue. During installationthe process fails with error “Unable to locate package wiringpi”. We are having problems with the 3g connection and we do not know if that is the cause. Could this package have something to do with the 3G connection issue? More on community.sixfab.com
🌐 community.sixfab.com
0
0
December 29, 2021
🌐
Stack Overflow
stackoverflow.com › questions › 72227922 › wiringpi-installation-issue
raspberry pi - wiringPi installation issue - Stack Overflow
In my case, the issue was due to a broken Debian installation, running the following command solved it: sudo apt --fix-broken install · Afterward, WiringPi was installed with the normal procedure.
🌐
Reddit
reddit.com › r/lightshowpi › unable to locate package wiringpi
r/LightShowPi on Reddit: Unable to locate package wiringpi
December 1, 2021 -

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
🌐
Sixfab Community
community.sixfab.com › raspberry pi network hats › 3g/4g
Wiringpi missing package - 3G/4G&LTE Base HAT - Sixfab Community
February 2, 2021 - during installation; sudo ./ppp_install_standalone.sh, of the 3G/4G/LTE base shied the process fails with error “Unable to locate package wiringpi”. I have confirmed wiringpi is indeed installed and working. I’ve include…
🌐
ODROID
forum.odroid.com › viewtopic.php
can not locate package odroid-wiringpi - ODROID
> So what to do? Debian Buster has a bug and when using PPA it always select "focal" ... nano /etc/apt/sources.list.d/hardkernel-ubuntu-ppa-bionic.list replace focal with disco or bionic, save, do apt update and run apt install odroid-wiringpi
🌐
Wiring Pi
wiringpi.com › home › download and install
Raspberry Pi | Wiring | Download & Install | Wiring Pi
August 6, 2019 - First check that wiringPi is not already installed. In a terminal, run: ... If you get something, then you have it already installed. The next step is to work out if it’s installed via a standard package or from source. If you installed it from source, then you know what you’re doing – ...
🌐
Gordons Projects
projects.drogon.net › home › raspberry pi › wiringpi › download and install
Raspberry Pi | Wiring | Download & Install | Gordons Projects
November 22, 2015 - Then look for the link marked snapshot at the right-hand side. You want to click on the top one. This will download a tar.gz file with a name like wiringPi-98bcb20.tar.gz.
Find elsewhere
🌐
GitHub
github.com › FabLab61 › FabKey › issues › 19
wiring pi is not working · Issue #19 · FabLab61/FabKey
November 28, 2017 - Unable to determine hardware version. I see: Hardware : BCM2835 , - expecting BCM2708 or BCM2709. Please report this to projects@drogon.net
Author   pavelsr
🌐
SparkFun Learn
learn.sparkfun.com › tutorials › raspberry-gpio › c-wiringpi-setup
C (WiringPi) Setup - Raspberry gPIo - SparkFun Learn
Troubleshooting Tip: If you receive an output similar to the one below when using the gpio command to read or configure the pins, this is because of a conflict between wiringPi and the mirrored WiringPi. Make sure to use the command to purge the previous wiringPi that was installed on your Raspberry Pi. gpio: Symbol 'piModelNames' has different size in shared object, consider re-linking Oops - unable to determine board type...
🌐
Adafruit
forums.adafruit.com › forums index › supported products & projects › other products from adafruit
IoT Printer Software Setup - packages not available - adafruit industries
sudo apt-get install git cups wiringpi build-essential libcups2-dev libcupsimage2-dev python-serial python-pil python-unidecode What OS version are you running? Did you update the OS? Are you running 64-bit? I'm 32-bit. ... Thanks for your help! We started from scratch a few days ago with a new Raspberry Pi Zero WH and used the Raspberry Pi Imager to install the "Raspberry Pi OS Lite (32-BIT)".
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › software › other › debian
E: Unable to locate package update - Raspberry Pi Forums
Running hooks in /etc/ca-certificates/update.d....done. Processing triggers for dictionaries-common ... Processing triggers for menu ... $sudo apt-get install update Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package update
🌐
RasPi.TV
raspi.tv › how-to-install-wiringpi2-for-python-on-the-raspberry-pi
How to install WiringPi2 for Python on the Raspberry Pi – RasPi.TV
July 21, 2013 - When I run python from the command ... wiringpi package (importing wringpi2 apparently doesn’t work anymore, you have to import ‘wiringpi’ with python 3). However, when I run Python (3) IDLE from the start menu and try to import wiringpi, it can’t locate any package called ...
Top answer
1 of 1
2

It was steel drivers comment, that solved it. sudo apt-get install libwiringpi-dev

There are some issues with libwiringpi-dev. You don't want to call wiringPiSetup(); you'll probably get

Oops: Unable to determine board revision from /proc/device-tree/system/linux,revision
or from /proc/cpuinfo
 -> No "Hardware" line
 ->  You'd best google the error to find out why.

which the reason is you're using a non arm based CPU,and the file its looking at isn't formatted the way it expects. fortunately I don't require any of that, I just wanted to use the simple serial port library.

I also had trouble with sending data via serialPuts(), but I don't need to do the handshaking.. I guess.

This is a little project that reads an Arduino uno with 2 potentiometers and a button, the goal is to use the pots to draw pictures on a screen, or in an image...

#include <iostream>
#include <stdio.h>
#include <unistd.h>       //read function
#include <string.h>
#include <wiringSerial.h> //simple serial port library

using namespace std;
//compiled with g++ -Wall -o readSerial   readSerial.cpp -lwiringPi

int main(int argc, char ** argv)
{
    const char *SensorPort = "/dev/ttyACM0"; //Serial Device Address
     
    int levelSensor = serialOpen(SensorPort, 9600);
    //serialPuts(levelSensor, "1"); //Send command to the serial device

    while (1){
        char buffer[100];
        ssize_t length = read(levelSensor, &buffer, sizeof(buffer));
        if (length == -1){
            cerr << "Error reading from serial port" << endl;
            break;
        }
        else if (length == 0){
            cerr << "No more data" << endl;
            break;
        }else{
            buffer[length] = '\0';
            cout << buffer; //Read serial data
        }
    }

    return 0;
}

the data being sent via the Arduino is via this code:

    /*EtchaSketch
     * 2 pots, X,Y, increment
     * 
     * add a button to delete this shtuff
     * This program communicates on the serial port, to a separate program that handles the drawing of received coordinates (pot values).  
    */
    
    int potX = A0;    
    int potY = A1;    
    int sensorValX = 0;  
    int sensorValY = 0;  
    int del = 1;       //a button on pin 1 for deleting drawn content 
    int delbutton = 0;
    void setup() {
        Serial.begin(9600);
        pinMode(del, INPUT);
    }

   void loop() {
      // read the value from the pots:
      if(digitalRead(del) == HIGH ){
          delbutton=1;
          }else{
              delbutton=0;
          }   
      sensorValX = analogRead(potX);
      sensorValY = analogRead(potY);
      Serial.print(sensorValX);
      Serial.print(",");
      Serial.print(sensorValY);
      Serial.print(",");
      Serial.println(delbutton);
      delay(1000);
      }

and here it is working good enough to go into the parsing / drawing program

🌐
Sixfab Community
community.sixfab.com › raspberry pi network hats › 3g/4g
Wiringpi missing package - #3 by ofierro - 3G/4G&LTE Base HAT - Sixfab Community
December 29, 2021 - during installation; sudo ./ppp_install_standalone.sh, of the 3G/4G/LTE base shied the process fails with error “Unable to locate package wiringpi”. I have confirmed wiringpi is indeed installed and working. I’ve include…
🌐
GitHub
github.com › cyoung › stratux › issues › 653
Compile failed, cannot locate Wiring Pi · Issue #653 · cyoung/stratux
August 1, 2017 - Tried manually pip install wiringpi apt-get install wiringpi · Back to stratux folder and make all.
Author   flyingyanz
🌐
Reddit
reddit.com › r/raspberry_pi › e: unable to locate packages
r/raspberry_pi on Reddit: E: unable to locate packages
August 19, 2016 -

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.