为了更新蚊虫客户机,我尝试了
sudo apt-get update
sudo apt-get install mosquitto-clients
但是,这并没有为我更新版本。
Reading package lists... Done
Building dependency tree
Reading state information... Done
mosquitto-clients is already the newest version (1.4.15-2ubuntu0.18.04.3).
The following packages were automatically installed and are no longer required:
bridge-utils ubuntu-fan
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 73 not upgraded.
我想使用tls1.3(使用mosquitto_pub --tls-version tlsv1.3
),从1.4.15的系统中我得到Error: Problem setting TLS options.
当使用Ubuntu wsl中的mosquito - client1.6.9时,我可以轻松地连接和发送数据。
有人能帮帮忙吗?两个系统都是linux
请按照文档配置repo,以便您可以看到所有可用的版本。
如果你需要安装1.6.10
版本(我没有看到1.6.9
)
root@debian1:~# apt install mosquitto-clients=1.6.10-0mosquitto1~buster1 libmosquitto1=1.6.10-0mosquitto1~buster1
查找一个包的所有可用版本。
root@debian1:~# apt-cache policy mosquitto-clients | less
但这取决于libmosquitto1
库,所以也请检查。
root@debian1:~# apt-cache policy libmosquitto1 | less