如何在不破坏 lightdm 的情况下降级 Plymouth?

如何在不破坏 lightdm 的情况下降级 Plymouth?

经过数周的搜索,我找到了一种新的解决方案,让我的 Plymouthearth-sunrise可以更早启动并持续更长时间。我刚刚阅读了如何在 (普利茅斯无法正常工作) 在 gentoo 网站上的文章。

我读过备受好评的问答(如何通过 apt-get 降级软件包?) 但它并没有解决普利茅斯的特点及其与的关系lightdm

以下是我想要的 Plymouth 版本 (0.8.8) 和当前安装的版本 (0.9.2):

───────────────────────────────────────────────────────────────────────────────
rick@dell:/var/log$ apt-cache showpkg plymouth | grep 0.8.8
  lightdm,plymouth 0.8.8-0ubuntu18
  lightdm,plymouth 0.8.8-0ubuntu18
───────────────────────────────────────────────────────────────────────────────
rick@dell:/var/log$ apt show plymouth
Package: plymouth
Version: 0.9.2-3ubuntu13.1
Priority: standard
Section: x11
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Laurent Bigonville <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 452 kB
Depends: libc6 (>= 2.14), libdrm2 (>= 2.4.25), libplymouth4 (>= 0.9.2), initramfs-tools | dracut, init-system-helpers (>= 1.18)
Recommends: plymouth-theme-ubuntu-text | plymouth-theme
Suggests: desktop-base, plymouth-themes
Conflicts: console-common, plymouth-theme-lubuntu-text (<< 0.57~)
Breaks: plymouth-drm (<< 0.9.0-6~), plymouth-theme-edubuntu (<< 15.12.1~), plymouth-theme-kubuntu-logo (<< 1:16.04ubuntu1~), plymouth-theme-kubuntu-text (<< 1:16.04ubuntu1~), plymouth-theme-lubuntu-logo (<< 0.57~), plymouth-theme-sability (<< 1.3~), plymouth-theme-sabily-text (<< 1.3~), plymouth-theme-ubuntu-gnome-logo (<< 16.04.1~), plymouth-theme-ubuntu-gnome-text (<< 16.04.1~), plymouth-theme-ubuntu-logo (<< 0.9.2-3ubuntu1~), plymouth-theme-ubuntu-mate-logo (<< 15.12.1~), plymouth-theme-ubuntu-mate-text (<< 15.12.1~), plymouth-theme-ubuntu-text (<< 0.9.2-3ubuntu1~), plymouth-theme-ubuntustudio (<< 0.50~), plymouth-theme-xubuntu-logo (<< 15.12.1~), plymouth-theme-xubuntu-text (<< 15.12.1~), plymouth-themes (<< 0.9.0-8~)
Replaces: libplymouth2 (<< 0.9.2-3ubuntu1~), plymouth-drm (<< 0.9.0-6~), plymouth-themes (<< 0.9.0-8~)
Homepage: http://www.freedesktop.org/wiki/Software/Plymouth
Task: standard, ubuntu-touch-core, ubuntu-touch, ubuntu-touch, ubuntu-sdk
Supported: 5y
Download-Size: 107 kB
APT-Manual-Installed: yes
APT-Sources: http://ca.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Description: boot animation, logger and I/O multiplexer
 Plymouth provides a boot-time I/O multiplexing framework - the most obvious
 use for which is to provide an attractive graphical animation in place of
 the text messages that normally get shown during boot. (The messages are
 instead redirected to a logfile for later viewing.) However, in event-driven
 boot systems Plymouth can also usefully handle user interaction such as
 password prompts for encrypted file systems.
 .
 This package provides the basic framework, enabling a text-mode animation.

N: There is 1 additional record. Please use the '-a' switch to see it
───────────────────────────────────────────────────────────────────────────────
rick@dell:/var/log$

我的问题是我想要降级到的软件包名为lightdm,plymouth 0.8.8-0ubuntu18,而已安装的软件包名为plymouth 0.9.2-3ubuntu13.1。我不知道该如何解决这个问题。

我担心的另一个问题是弄乱我的工作lightdm,这会引起各种麻烦。

使用上面得票率很高的问答,我输入:

sudo apt-get install "lightdm,plymouth"=0.8.8-0ubuntu18
apt-mark hold "lightdm,plymouth"

或者是正确的格式:

sudo apt-get install plymouth=0.8.8-0ubuntu18
apt-mark hold plymouth

或者这是完全不同的东西吗?

提前致谢。

答案1

  • "lightdm,plymouth"=0.8.8-0ubuntu18语法错误,plymouth=0.8.8-0ubuntu18正确。来自man apt-get

    install pkg [{=pkg_version_number | /target_release}]...
    

    因此这些形式是正确的(空格作为分隔符):

    install plymouth
    install plymouth=0.8.8-0ubuntu18
    install plymouth/trusty
    
    install lightdm plymouth=0.8.8-0ubuntu18
    install lightdm=1.18.1-0ubuntu1 plymouth=0.8.8-0ubuntu18
    
  • 但是该版本0.8.8-0ubuntu18在存储库中不可用。他们把它放在那里只是为了跳过旧版本,最后一个是0.8.8-0ubuntu17.1

    为了完整起见,你可能需要自己验证一下:

    http://archive.ubuntu.com/ubuntu/pool/main/p/plymouth/
    http://old-releases.ubuntu.com/ubuntu/pool/main/p/plymouth/

相关内容