更新

更新

背景:Raspberry Pi Zero-W 上的 OSMC 发行版。 MQTT Mosquitto 软件包安装失败。

为什么要尝试:

sudo apt-get install mosquitto

触发尝试删除 OSMC 软件包?

The following packages will be REMOVED:
  ssh-app-osmc

日志:

osmc@osmczero:~$ sudo apt-get install mosquitto 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libev4 libuv1 libwebsockets8
Suggested packages:
  apparmor
The following packages will be REMOVED:
  ssh-app-osmc
The following NEW packages will be installed:
  libev4 libuv1 libwebsockets8 mosquitto
0 upgraded, 4 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/314 kB of archives.
After this operation, 673 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 34694 files and directories currently installed.)
Removing ssh-app-osmc (1.2.3) ...
Removing 'diversion of /etc/ssh/sshd_config to /etc/ssh/sshd_config.distributed by ssh-app-osmc'
dpkg-divert: error: rename involves overwriting '/etc/ssh/sshd_config' with
  different file '/etc/ssh/sshd_config.distributed', not allowed
dpkg: error processing package ssh-app-osmc (--remove):
 subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
 ssh-app-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

更新

依赖查询:

osmc@osmczero:~$ apt-cache show ssh-app-osmc
Package: ssh-app-osmc
Origin: OSMC
Version: 1.2.3
Essential: No
Pre-Depends: openssh-server
Architecture: all
Maintainer: Sam G Nazarko <[email protected]>
Priority: required
Section: metapackages
Filename: pool/main/s/ssh-app-osmc/ssh-app-osmc_1.2.3_all.deb
Size: 3168
SHA256: 6fe60f2956b2d5105d9da82693f1747195be55ce81a6e4b4085ab5acc0af33fb
SHA1: edcb33f8a2f0ed82028e31e53ae6889dc99714f5
MD5sum: 9602092e26c9fe46596dc2165759b78d
Description: SSH server for OSMC with prepopulated configuration
Description-md5: a4e3a71ca28452ae99a476d87b31377c
Installed-Size: 38

相关内容