我问了另一个相关的问题。我知道我可以lg通过 gnome-shell“运行应用程序”窗口(按Alt+ F2)调用(镜子)。我想知道的是如何从命令行执行此操作?
例如,如果我想从 shell 脚本中弹出窥镜,我该怎么做?
(我的另一个问题)
Universe 存储库中有一个适用于 Python2 的包 (python-pygame)。但是,我想完成Invent with Python book 中的教程。通过 SPM (Synaptic),我找不到 Python3 的 pygame 资源。
另外,我查看了Pygame网站,并不清楚 Pygame 是否可用于 Python3(尽管书中指出它是)。
有人可以帮助我解决我的困境吗?
我正在尝试删除一个明显损坏的包gammu-smsd.service。
当我运行时sudo apt remove gammu-smsd.service,我得到以下结果:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gammu-smsd.service
Run Code Online (Sandbox Code Playgroud)
我开始想要删除这个包,因为在我进行一些清理时,我在尝试安装和删除我选择的包时遇到了问题。这是升级的结果(更新完美无缺)。
这是运行的结果sudo apt upgrade。
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Abort. …Run Code Online (Sandbox Code Playgroud) 我看过相关的问题,但没有一个能回答我的问题。我问这个问题是因为,每当我从命令行调用 xdg-open 时,都会收到以下错误,指示我启用 WSL 互操作性。我尝试打开 PNG 文件和 PDF 文件。两者都向我传达了相同的信息。
我使用的是 Ubuntu 22.04。
$ xdg-open IMG_20220629_131736841.jpg
$ grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
WSL Interopability is disabled. Please enable it before using WSL.
grep: /proc/sys/fs/binfmt_misc/WSLInterop: No such file or directory
[error] WSL Interoperability is disabled. Please enable it before using WSL.
/usr/bin/wslview: line 216: /mnt/c/Windows/System32/reg.exe: No such file or directory
/usr/bin/wslview: line 308: [: -ge: unary operator expected
[error] This protocol is not supported before version 1903.
Run Code Online (Sandbox Code Playgroud) 我在目录中添加了其他搜索提供程序(例如,AskUbuntu、Wolfram、YouTube)/usr/share/gnome-shell/search_providers。这些工作得很好。但是,它们出现在“活动概览”上的顺序不合逻辑。
是否可以更改搜索提供程序的显示顺序?
奖励:如何将其中一个设为默认值?