
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
使用aptファイルまたは代わりにオンライン検索パッケージ名を検索します。
あなたは気づくでしょう蚊確かに正しいDebian パッケージ名サーバー部分をインストールします。コマンドはmosquitto_sub
パッケージによって提供されますmosquitto クライアント。
ただし、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