我真正的目标是运行系统日志遥控器,这样我就可以将日志从这个设备发送到远程日志接收器。apt-获取更新/升级显示没有需要升级的包。
$ sudo apt-get install systemd-journal-remote
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
systemd-journal-remote : Depends: systemd (= 232-25+deb9u4) but 232-25+deb9u2 is to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt-get install systemd
Reading package lists... Done
Building dependency tree
Reading state information... Done
systemd is already the newest version (232-25+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ cat /etc/issue
Raspbian GNU/Linux 9 \n \l
$ cat /etc/debian_version
9.4发布于 2018-10-10 22:45:34
我发现了原因。检查/etc/apt/preences.d中以".pref“结尾的文件。在我的例子中,我有一个名为10-somefilename.pref的文件,它将我的所有包保存到它们的初始版本。
https://serverfault.com/questions/934931
复制相似问题