我之前遇到过 dpkg 问题,我用这个解决了它回答。修复该问题后,一切都好了。但现在 dpkg 又出现了另一个问题
sudo apt-get install xix-media-playe
Reading package lists... Done
Building dependency tree
Reading state information... Done
xix-media-player is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up gnome-menus (3.10.1-0ubuntu2) ...
/var/lib/dpkg/info/gnome-menus.postinst: 4: /var/lib/dpkg/info/gnome-menus.
nst: dpkg-maintscript-helper: Permission denied
dpkg: error processing package gnome-menus (--configure):
subprocess installed post-installation script returned error exit status 126
Setting up xix-media-player (0.35-a~trusty~Noobslab.com) ...
mv: cannot stat ‘/tmp/xixplayer/x32/xix-music-player’: No such file or directory
dpkg: error processing package xix-media-player (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gnome-menus
xix-media-player
E: Sub-process /usr/bin/dpkg returned an error code (1)
我不知道这个问题的原因。请帮我解决这个问题。谢谢。
答案1
是的,我遇到了同样的问题...只需按照以下步骤操作,你就可以摆脱困境
sudo mv /var/lib/dpkg/info/xix-media-player.* /tmp/
sudo dpkg --remove --force-remove-reinstreq xix-media-player
sudo apt-get remove xix-media-player
sudo apt-get autoremove && sudo apt-get autoclean