我最近升级到了 20.04。我在打开 Nautilus(文件)时遇到了麻烦,光标开始旋转,但接下来什么也没发生。
nautilus
这是我在终端中输入时出现的错误。
nautilus: symbol lookup error: nautilus: undefined symbol: pango_attr_insert_hyphens_new
编辑:输出apt-cache policy nautilus libpango-1.0-0
是
nautilus:
Installed: 1:3.36.3-0ubuntu1
Candidate: 1:3.36.3-0ubuntu1
Version table:
*** 1:3.36.3-0ubuntu1 500
500 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
100 /var/lib/dpkg/status
1:3.36.1.1-1ubuntu2 500
500 http://in.archive.ubuntu.com/ubuntu focal/main amd64 Packages
libpango-1.0-0:
Installed: 1.44.7-2ubuntu4
Candidate: 1.44.7-2ubuntu4
Version table:
*** 1.44.7-2ubuntu4 500
500 http://in.archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
并ldd /usr/bin/nautilus| grep pango
给出
libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0 (0x00007f082c265000)
libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0 (0x00007f082c020000)
libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0 (0x00007f082ae06000)
有什么解决办法吗?
答案1
您必须使用以下命令删除本地库
sudo rm /usr/local/lib/libpangocairo-1.0.so.0
sudo rm /usr/local/lib/libpango-1.0.so.0
sudo rm /usr/local/lib/libpangoft2-1.0.so.0
然后尝试启动 Nautilus。