E: 모기 패키지를 찾을 수 없습니다.

E: 모기 패키지를 찾을 수 없습니다.

mosquitto 패키지를 설치하려고 하는데 입력 sudo apt-get install mosquitto하면 E: Unable to locate package mosquitto.

나는 이미 sudo apt-get update달렸고 sudo apt-get upgrade.

출력 apt search mosquitto:

Sortierung... Fertig
Volltextsuche... Fertig
libmosquitto1/now 1.5.7-1+deb10u1 armhf  [Installiert,lokal]
  MQTT version 3.1/3.1.1 client library

mosquitto-clients/now 1.5.7-1+deb10u1 armhf  [Installiert,lokal]
  Mosquitto command line MQTT clients

(독일 부품은 죄송합니다.) 이미 설치된 것 같은데요? 하지만 mosquitto_sub -d -t /home/data테스트를 위해 실행하면Error: Connection refused

출력 cat /etc/apt/sources.list:

#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

' 에 문제가 있는 것 같아서 다음과 같이 apt-get update수정해 보았습니다 .debsums이것스레드를 찾았지만 apt-get update직접 설치할 debsums 패키지를 찾을 수 없습니다...

답변1

사용적절한 파일또는 대안으로온라인 검색패키지 이름을 검색합니다.

당신은 그것을 찾을 것입니다모기정말 맞다데비안 패키지 이름서버 부분을 설치합니다. 명령은 mosquitto_sub패키지에서 제공됩니다.모기 클라이언트.

그러나 sources.list제공된 내용은 설치가 Debian을 기반으로 하지 않고 버전 의 Raspberry Pi OS(이전에는 Raspbian이라고 함)를 기반으로 함을 나타냅니다 buster. 저장소패키지가 포함되어 있습니다또한.

파일을 주의 깊게 확인하시기 바랍니다 sources.list. 저장소가 주석 처리된 것 같습니다. #결국 첫 번째 줄 을 제거 하시겠습니까 ? 파일은 다음과 유사해야 합니다.

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://archive.raspberrypi.org/debian/ buster main

# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

관련 정보