上周,我在一台使用 LVM 的新主机上安装了 Ubuntu 18.10。它在一个 VG 中有一个带启动和根目录的 SSD,然后我在另一个包含的 VG 中添加了一个 HDD /home and /media
。
大约一天后,在我安装了一堆额外的应用程序和配置后,脚本unattended-upgrade
删除了软件包lvm2
和libreadline5
。现在我的系统无法启动,因为没有 lvm 工具。
它为什么会这样做?我在 中找到了它/var/log/apt/history.log
,但我没有看到任何理由。我现在无法重新安装它,所以我可能不得不从头开始重新安装。
/var/log/apt/history.log
从 10/30 的无人值守升级到 11/01 的无人值守升级删除的输出:
Start-Date: 2018-10-30 06:26:47
Commandline: /usr/bin/unattended-upgrade
Upgrade: python-paramiko:amd64 (2.4.1-0ubuntu3.1, 2.4.1-0ubuntu3.2)
End-Date: 2018-10-30 06:26:48
Start-Date: 2018-10-30 06:26:50
Commandline: /usr/bin/unattended-upgrade
Upgrade: tzdata:amd64 (2018f-0ubuntu0.18.10, 2018g-0ubuntu0.18.10)
End-Date: 2018-10-30 06:26:50
Start-Date: 2018-11-01 06:17:54
Commandline: /usr/bin/unattended-upgrade
Upgrade: distro-info-data:amd64 (0.38, 0.38ubuntu0.1)
End-Date: 2018-11-01 06:17:54
Start-Date: 2018-11-01 06:17:56
Commandline: /usr/bin/unattended-upgrade
Upgrade: libcurl3-gnutls:amd64 (7.61.0-1ubuntu2, 7.61.0-1ubuntu2.2)
End-Date: 2018-11-01 06:17:56
Start-Date: 2018-11-01 06:17:58
Commandline: /usr/bin/unattended-upgrade
Upgrade: libcurl4:amd64 (7.61.0-1ubuntu2, 7.61.0-1ubuntu2.2), curl:amd64 (7.61.0-1ubuntu2, 7.61.0-1ubuntu2.2)
End-Date: 2018-11-01 06:18:00
Start-Date: 2018-11-01 06:18:02
Commandline: /usr/bin/unattended-upgrade
Upgrade: chromium-browser:amd64 (70.0.3538.67-0ubuntu0.18.10.1, 70.0.3538.77-0ubuntu0.18.10.1), chromium-codecs-ffmpeg-extra:amd64 (70.0.3538.67-0ubuntu0.18.10.1, 70.0.3538.77-0ubuntu0.18.10.1), chromium-browser-l10n:amd64 (70.0.3538.67-0ubuntu0.18.10.1, 70.0.3538.77-0ubun
tu0.18.10.1)
End-Date: 2018-11-01 06:18:07
Start-Date: 2018-11-01 06:18:08
Commandline: /usr/bin/unattended-upgrade
Upgrade: libgs9:amd64 (9.25~dfsg+1-0ubuntu1, 9.25~dfsg+1-0ubuntu1.1), ghostscript:amd64 (9.25~dfsg+1-0ubuntu1, 9.25~dfsg+1-0ubuntu1.1), ghostscript-x:amd64 (9.25~dfsg+1-0ubuntu1, 9.25~dfsg+1-0ubuntu1.1), libgs9-common:amd64 (9.25~dfsg+1-0ubuntu1, 9.25~dfsg+1-0ubuntu1.1)
End-Date: 2018-11-01 06:18:10
Start-Date: 2018-11-01 06:18:12
Commandline: /usr/bin/unattended-upgrade
Remove: lvm2:amd64 (2.02.176-4.1ubuntu3), libreadline5:amd64 (5.2+dfsg-3build2)
End-Date: 2018-11-01 06:18:15
编辑:
这可能/var/log/apt/eipp.log.xz
是导致此现象的原因吗?
Package: libdevmapper1.02.1
Architecture: amd64
Version: 2:1.02.145-4.1ubuntu3
APT-ID: 2201
Multi-Arch: same
Status: installed
Depends: libc6 (>= 2.22), libselinux1 (>= 1.32), libudev1 (>= 183)
Conflicts: libdevmapper1.02
Breaks: liblvm2app2.2 (<< 2.02.122), lvm2 (<< 2.02.122)