Hug*_*esR 10 windows-subsystem-for-linux desktop-icons 22.04
5 月初,我在两台不同的机器上通过实时 USB 密钥全新安装了 Ubuntu 22.04 。一切都很顺利,只是桌面上的图标打不开。更确切地说:
无论是对于桌面上的文件还是文件夹(包括22.04默认放置的主目录图标),以下方法仅使图标突出显示,但不打开它(无论使用鼠标还是触摸板):
仅以下方法适用于桌面上的文件(但不适用于文件夹):
以下观察结果可能也令人感兴趣:
我做了以下检查:
我的桌面文件夹及其中的文件夹和文件的权限是正确的(755 或 644)
默认应用程序是正确的(pdf 文件的文档查看器、txt 文件的文本编辑器等)
sudo apt-get install --reinstall ubuntu-desktop
等待几周更新并安装它们
使用默认配置创建新用户。
但问题仍然存在。有什么想法可以帮忙吗?(我进一步想到但尚未调查的唯一假设是我在两台机器上安装了 gnome-tweaks,所以也许它会以某种方式干扰。)
编辑:每次我尝试在桌面上打开图标失败时,/var/log/syslog都会记录此类错误:
gnome-shell[xxxx]: DING: grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
gnome-shell[xxxx]: DING: WSL Interopability is disabled. Please enable it before using WSL.
gnome-shell[xxxx]: DING: grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
gnome-shell[xxxx]: DING: #033[31m#033[1m[error] WSL Interoperability is disabled. Please enable it before using WSL.#033(B#033[m
gnome-shell[xxxx]: DING: /usr/bin/wslview: line 216: /mnt/c/Windows/System32/reg.exe: No such file or directory
gnome-shell[xxxx]: DING: /usr/bin/wslview: line 308: [: -ge: unary operator expected
gnome-shell[xxxx]: DING: #033[31m[error]#033(B#033[m This protocol is not supported before version 1903.
Run Code Online (Sandbox Code Playgroud)
所以看起来桌面图标 NG 希望我启用 WSL 互操作性,但我无法找到如何做到这一点。
也就是说,我不明白 Windows 和 Linux 之间的互操作性与在桌面上打开文件夹或 pdf 文件有什么关系?!
我的机器是双启动的。但我的 Ubuntu 安装独立于 Windows。我当然不会在 Windows 中运行 Linux。那么为什么桌面图标 NG 要求 WSL 互操作性?!
joe*_*pts 13
此问题似乎并不局限于双引导环境。我也遇到这个问题,也是通过卸载解决的wslu。除了 Kubuntu 22.04 之外,我没有安装 Windows 或任何其他操作系统。
命令的输出
sudo apt purge wslu
Run Code Online (Sandbox Code Playgroud)
帮助追踪 的依赖性wslu。
您的里程可能会有所不同,但就我而言gimp-help-en:
Reading state information... Done
The following package was automatically installed and is no longer required:
gimp-help-common
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
gimp-help-en* wslu*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 63.8 MB disk space will be freed.
Do you want to continue? [Y/n]
Run Code Online (Sandbox Code Playgroud)
gimp安装后,每次会话中都会弹出一条消息“语言支持不完整,需要其他软件包”,单击“解决问题”即可安装gimp帮助。安装帮助后,网页链接不再起作用。
在我的安装中wslu确实是依赖于 的gimp帮助。我可以通过手动安装来验证这一点apt install gimp-help-en,并看到它wslu也会被安装(并且需要再次删除)。
我研究了gimp-help-enwith commandapt depends gimp-help-en和gimp-help-endependents virtual package的依赖关系www-browser。www-browser许多软件包都满足,其中chromium-browser、firefox、konqueror以及wslu。在Ubuntu 20.04及更早版本中firefox默认安装并gimp-help-en满足依赖关系;在 Ubuntu 22.04 中firefox不再是一个软件包,而是一个快照,并且安装gimp-help-en也已安装wslu。
firefox就我而言,这个问题是 Canonical在 Ubuntu 22.04 中变成 snap的副作用。如果我安装了chromium-browser,konqueror或者firefox作为一个包,依赖项www-browser就不会安装wslu,我就不会遇到这个问题。
wslu删除作为修复的缺点是wslu,在我的例子中,不仅删除了导致安装它的软件包gimp-help-en。删除后gimp-help-en,wslu消息“语言支持不完整,需要其他软件包”在每个会话中再次弹出,我是否应该屈服并单击此消息gimp-help-en并将wslu再次安装,问题将再次出现。
我发现的最佳解决方案是www-browser在删除wslu. 这样,只会wslu被删除。这对我来说效果很好:
sudo apt install firefox
sudo apt purge wslu
Run Code Online (Sandbox Code Playgroud)
其中 packagefirefox实际上并未将 firefox 作为软件包安装;它只是链接到快照。安装它就满足了依赖关系www-browser。除此之外的任何其他包都firefox可以满足www-browser,例如chromium-browser,konqueror或lynx。
| 归档时间: |
|
| 查看次数: |
10294 次 |
| 最近记录: |