update-alternatives:错误:替代路径/lib/plymouth/themes/Lmint/Lmint.plymouth不存在
当我使用sudo apt-get install
我在安装任何软件包时遇到以下错误:(这个例子是在安装Gnome扩展时)
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libdbusmenu-qt2:i386 libatk1.0-0:i386 libxcomposite1:i386 ruby-text-format ruby-activesupport-2.3 libwrap0:i386 nspluginwrapper libsamplerate0:i386 libi18n-ruby libbuilder-ruby rake libjack-jackd2-0:i386 libnspr4-0d:i386 libcairo2:i386 libjs-prototype libmemcache-client-ruby1.8 ruby-actionmailer-2.3 sni-qt:i386 libmemcache-client-ruby ruby-activerecord-2.3 ruby-rchardet libdatrie1:i386 libjson0:i386 libyaml-0-2 libgdk-pixbuf2.0-0:i386 libpixman-1-0:i386 ruby-tmail libjs-scriptaculous libxinerama1:i386 nspluginviewer:i386 libxft2:i386 libbuilder-ruby1.8 libspeexdsp1:i386 libthai0:i386 libasound2:i386 libflac8:i386 librack-ruby libtzinfo-ruby1.8 libvorbisenc2:i386 ruby-rails-2.3 libasyncns0:i386 libjasper1:i386 librack-ruby1.8 ruby-activeresource-2.3 libtzinfo-ruby libruby1.9.1 libpango1.0-0:i386 libpulse0:i386 libxcb-render0:i386 libvorbis0a:i386 libxcursor1:i386 libxcb-shm0:i386 libxv1:i386 libi18n-ruby1.8 ruby-actionpack-2.3 libxrandr2:i386 libnss3-1d:i386 libsndfile1:i386 libgtk2.0-0:i386 libasound2-plugins:i386 libogg0:i386 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: gnome-shell-extensions-windows-navigator 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. 4 not fully installed or removed. Need to get 7,290 B of archives. After this operation, 73.7 kB of additional disk space will be used. Get:1 http://ppa.launchpad.net/ferramroberto/gnome3/ubuntu/ oneiric/main gnome-shell-extensions-windows-navigator all 3.2.0-1~lffl~oneiric~ppa [7,290 B] Fetched 7,290 B in 0s (15.1 kB/s) Selecting previously deselected package gnome-shell-extensions-windows-navigator. (Reading database ... 267839 files and directories currently installed.) Unpacking gnome-shell-extensions-windows-navigator (from .../gnome-shell-extensions-windows-navigator_3.2.0-1~lffl~oneiric~ppa_all.deb) ... Setting up plymouth-theme-lmint (0.5.0-1) ... update-alternatives: error: alternative path /lib/plymouth/themes/Lmint/Lmint.plymouth doesn't exist. dpkg: error processing plymouth-theme-lmint (--configure): subprocess installed post-installation script returned error exit status 2 Setting up plymouth-theme-mib-oxygen (0.5.0-1) ... update-alternatives: error: alternative path /lib/plymouth/themes/MIBOxygen/MIBOxygen.plymouth doesn't exist. dpkg: error processing plymouth-theme-mib-oxygen (--configure): subprocess installed post-installation script returned error exit status 2 Setting up plymouth-theme-mib-ubuntu (0.5.0-2) ... update-alternatives: error: alternative path /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth doesn't exist. dpkg: error processing plymouth-theme-mib-ubuntu (--configure): subprocess installed post-installation script returned error exit status 2 Setting up plymouth-theme-spinfinity-ubuntu-women (0.5.0-2) ... update-alternatives: error: alternative path /lib/plymouth/themes/plymouth-theme-spinfinity-ubuntu-women/spinfinity-ubuntu-women.plymouth doesn't exist. dpkg: error processing plymouth-theme-spinfinity-ubuntu-women (--configure): subprocess installed post-installation script returned error exit status 2 Setting up gnome-shell-extensions-windows-navigator (3.2.0-1~lffl~oneiric~ppa) ... No apport report written because MaxReports is reached already Errors were encountered while processing: plymouth-theme-lmint plymouth-theme-mib-oxygen plymouth-theme-mib-ubuntu plymouth-theme-spinfinity-ubuntu-women E: Sub-process /usr/bin/dpkg returned an error code (1)**
我也从Ubuntu软件中心安装错误,导致安装失败,但程序包仍然显示为已安装。
我相信这些错误是由安装plymouth-manger
来管理启动画面主题引起的。
任何帮助摆脱这个讨厌的错误将不胜感激!
我会通过在终端中运行它来清理缓存并删除不需要的包:
sudo apt-get clean && sudo apt-get autoremove
现在修复剩下的
sudo apt-get -f install
最后配置所有其他
sudo dpkg --configure -a
我有一个类似的问题,但对于一个不同的包。 我尝试了blueXrider建议的所有内容 ,搜索了其他答案,没有什么能解决我的错误。
最后,我刚刚编辑了dpkg状态文件。
/var/lib/dpkg/status
首先,我创建了状态文件的备份。
sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.back
然后我找到了我的包的文本块,删除了它,然后保存了文件。
执行此操作后未显示错误。
我对Linux和Ubuntu比较陌生,我不能说这是解决问题的最佳方法,但它对我有用。
sudo apt-get clean && sudo apt-get autoremove sudo apt-get -f install sudo dpkg --configure -a
这应该解决它
如果仍然存在错误,则从系统中清除普利茅斯主题和经理
您也可以使用相同的命令来修复apt,当您在中途停止更新时会使用相同的命令,例如在dist-upgrade期间断电
但是读取错误输出清除应该可以清除问题然后运行
sudo apt-get clean && sudo apt-get autoremove sudo apt-get -f install sudo dpkg --configure -a
这个对我有用,为其他人发帖受益:
sudo apt-get --purge remove plymouth-theme-mib-ubuntu
从:
update-alternatives:错误:替代路径/lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth不存在
- easy_install / pip或apt-get
- dist-upgrade想要删除kubuntu_desktop
- 我可以在Ubuntu软件上中止安装过程吗?
- 如何显示所有apt-get Dpkg :: Options及其当前值?
- 如何在/ var / cache / apt / archives中使文件始终具有世界可读性?
- 如何让我的DEB安装libstdc ++。so.6.0.20?
- 破坏计数错误:linux-generic-pae:取决于:linux-image-generic-pae(= 3.2.0.37.44)但安装了3.2.0.37.45
- “sudo apt-get update”有什么作用?
- 如何强制只安装更新的KDE包?