我从 13.04 升级到 13.10 后,我的 rhythmbox 无法工作。经过多次失败的尝试,我最终卸载并删除了所有我能找到的 rhythmbox 痕迹。现在我重新安装了 rhythmbox,并收到错误
rhythmbox: error while loading shared libraries: librhythmbox-core.so.7: cannot open shared object file: No such file or directory
我试过了sudo apt-get install librhythmbox*
只需获得
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'librhythmbox-core5' for regex 'librhythmbox*'
Note, selecting 'librhythmbox-core6' for regex 'librhythmbox*'
Note, selecting 'librhythmbox-core7' for regex 'librhythmbox*'
librhythmbox-core7 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
关于如何让节奏盒恢复工作状态,您有什么想法吗?
我现在已经重新安装了 librhythmboxcore7 sudo apt-get --reinstall install librhythmbox-core7
,并且得到了一个不同的错误,与我第一次升级时的原始问题更加接近(尽管我认为它并不完全相同)。(rhythmbox:22288): Gtk-CRITICAL **: gtk_builder_add_from_file: assertion 'filename != NULL' failed Segmentation fault (core dumped)
现在,有了 fossfreedoms 的指导,sudo apt-get --reinstall install gir1.2-rb-3.0 librhythmbox-core7 rhythmbox rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder rhythmbox-plugin-zeitgeist rhythmbox-plugins
我又可以开始使用 rhythmbox 了。
答案1
您可能需要使用技巧apt
来重新安装该库,即使它已经安装。这应该会强制重新创建正确的符号链接(如您所报告的)。
举个例子:
dad@dad-VirtualBox:~$ sudo apt-get install librhythmbox-core7
Reading package lists... Done
Building dependency tree
Reading state information... Done
librhythmbox-core7 is already the newest version.
The following package was automatically installed and is no longer required:
cmake-data
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
正如您所看到的,简单的安装包librhythmbox-core7
是不起作用的。
dad@dad-VirtualBox:~$ sudo apt-get --reinstall install librhythmbox-core7
[sudo] password for dad:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
cmake-data
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/457 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 195782 files and directories currently installed.)
Preparing to replace librhythmbox-core7 2.99.1-0ubuntu1 (using .../librhythmbox-core7_2.99.1-0ubuntu1_amd64.deb) ...
Unpacking replacement librhythmbox-core7 ...
Setting up librhythmbox-core7 (2.99.1-0ubuntu1) ...
Processing triggers for libc-bin ...
dad@dad-VirtualBox:~$
通过使用sudo apt-get --reinstall install librhythmbox-core7
,apt 将去获取新的副本并安装该库。
以类似的方式,您也可以强制下载并重新安装所有核心 rhythmbox 包:
sudo apt-get --reinstall install gir1.2-rb-3.0 librhythmbox-core7 rhythmbox rhythmbox-data rhythmbox-mozilla rhythmbox-plugin-cdrecorder rhythmbox-plugin-zeitgeist rhythmbox-plugins