当我使用 Emby 的 deb 版本时,我可以毫无问题地访问我的 nfs,/mnt/main,当我尝试使用 emby 的 snap 版本时,我被拒绝并且它一直指向 /root/snap 我对 Linux 和 Ununtu 还不太熟悉,所以对命令和文件系统还不太熟悉。
我之所以要使用 snap 版本是因为它可以自动更新。
当我使用 Emby 的 deb 版本时,我可以毫无问题地访问我的 nfs,/mnt/main,当我尝试使用 emby 的 snap 版本时,我被拒绝并且它一直指向 /root/snap 我对 Linux 和 Ununtu 还不太熟悉,所以对命令和文件系统还不太熟悉。
我之所以要使用 snap 版本是因为它可以自动更新。
系统信息:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
当我运行时snap list
,出现以下异常:
错误:无法列出快照:无法添加授权:用户:未知用户 ID 1532788159
我也无法打开 Firefox 或 snap 商店。
升级到 24.04 后,Thunderbird 已迁移到 snap,现在我获得了 4 份 Thunderbird 配置文件的副本。
$ du -sm snap/thunderbird/*/.thunderbird/v* .thunderbird/v*
11783 snap/thunderbird/507/.thunderbird/vwsjq0wp.default
11783 snap/thunderbird/509/.thunderbird/vwsjq0wp.default
11730 snap/thunderbird/common/.thunderbird/vwsjq0wp.default
11782 .thunderbird/vwsjq0wp.default
目前指向 507
$ ls -ld snap/thunderbird/current
lrwxrwxrwx 1 kfc kfc 3 Sep 2 00:25 snap/thunderbird/current -> 507
然而,更新的文件夹似乎很常见。
我知道 ~/.thunderbird 可以被删除,但是我仍然保留了我的个人资料的三个副本。
我可以删除哪些,以及如何防止 Thunderbird 升级时 snap 创建更多重复项?
我正在运行 Ubuntu 24.04,在尝试使用 Snap 安装应用程序时遇到了一些问题。以下是问题摘要:
我尝试使用 apt 安装 PhpStorm 并收到以下消息:
$ sudo apt install phpstorm
[sudo] password for amyr:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
No apt package "phpstorm", but there is a snap with that name.
Try "snap install phpstorm"
E: Unable to locate package phpstorm
接下来,我尝试通过 Snap 安装它:
$ snap install phpstorm
error: snap "phpstorm" not found
然后我运行了 snap refresh 和 snap search phpstorm,输出表明 PhpStorm 可用:
$ snap search phpstorm
Name Version Publisher Notes Summary
phpstorm 2024.2.1 jetbrains✓ classic PhpStorm
但是,当我尝试使用以下命令安装 PhpStorm 时:
$ sudo snap install phpstorm --classic
error: snap "phpstorm" not found
有趣的是,我能够成功安装 hello-world snap!
我的 Snap 设置如下:
snap 2.63.1+24.04
snapd 2.63.1+24.04
series 16
ubuntu 24.04
kernel 6.8.0-41-generic
似乎在定位或访问 PhpStorm snap 和一些其他应用程序(如 Webstorm 等)时出现了问题(我也尝试从 Snap Store 安装)。有没有其他人遇到过这个问题或有什么解决建议?
提前感谢您的帮助!
我最近重新安装了操作系统,从 22.04 升级到 24.04。重新安装后simple-scan
,我首选的扫描软件(通过 USB 直接连接的)无法再检测到我的 Fujitsu (Ricoh) fi-800r。simple-scan
此配置在之前的 22.04 安装中运行正常。
pfufs/now 2.8.0 amd64 [installed,local]
)
ls /usr/lib/sane/
节目libsane-pfufs.so libsane-pfufs.so.1 libsane-pfufs.so.1.1.24
lsusb
报告我的扫描仪Bus 009 Device 005: ID 04c5:15fc Fujitsu, Ltd
ls -l /dev/bus/usb/*/*
报告足够的权限crw-rw-rw-+ 1 root root 189, 1028 Aug 28 09:40 /dev/bus/usb/009/005
从apt list *sane*
:
libsane-common/noble,noble,now 1.2.1-7build4 all [installed]
libsane-dev/noble,now 1.2.1-7build4 amd64 [installed]
libsane-dev/noble,now 1.2.1-7build4 i386 [installed]
libsane-hpaio/noble,now 3.23.12+dfsg0-0ubuntu5 amd64 [installed,automatic]
libsane1/noble,now 1.2.1-7build4 amd64 [installed]
libsane1/noble,now 1.2.1-7build4 i386 [installed,automatic]
sane-airscan/noble,now 0.99.29-0ubuntu4 amd64 [residual-config]
sane-utils/noble,now 1.2.1-7build4 amd64 [installed]
sane/noble,now 1.0.14-18 amd64 [installed]
xsane-common/noble,noble,now 0.999-12ubuntu4 all [installed,automatic]
xsane/noble,now 0.999-12ubuntu4 amd64 [installed]
从sane-find-scanner
:
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.
# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
found possible USB scanner (vendor=0x04c5, product=0x15fc) at libusb:005:003
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# Not checking for parallel port scanners.
# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
从scanimage -L
:
device `pfufs:fi-800R:009:005' is a fi-800R scanner
/etc/sane.d/dll.conf
有fujitsu
(未注释掉)
/etc/sane.d/fujitsu.conf
有usb 0x04c5 0x15fc
xsane
可以成功扫描图像。simple-scan
下拉菜单中没有列出我的扫描仪。simple-scan pfufs:fi-800R:009:005
尝试开始扫描时打开超时。当 Ubuntu 版本达到使用寿命终止(EOL)时,它会停止接收 APT 更新。
这是否也适用于 snap 商店,即当 Ubuntu EOL 停止$ sudo snap refresh
工作时?
我最近在 Cliq 上进行对话时系统冻结,不得不重新启动。重新启动后,我发现 Chromium 不再起作用。尝试在终端中运行它:
chromium-browser
Gtk-Message: 22:25:38.263: Failed to load module "xapp-gtk3-module"
Gtk-Message: 22:25:38.264: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/arpad/snap/chromium/common/.cache/gio-modules/libgiolibproxy.so
*** stack smashing detected ***: terminated
[0704/222538.583303:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
LaunchProcess: failed to execvp:
xdg-desktop-menu
[12803:12803:0704/222538.708344:ERROR:account_info_fetcher.cc(62)] OnGetTokenFailure: Request canceled.
[0704/222538.736499:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222539.123342:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
[12803:12803:0704/222539.171816:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented
[12803:12911:0704/222539.272366:ERROR:cert_verify_proc_builtin.cc(1051)] CertVerifyProcBuiltin for hu.mohamedopedia.org failed:
----- Certificate i=0 (CN=ls-account) -----
ERROR: No matching issuer found
[12952:12976:0704/222539.277490:ERROR:ssl_client_socket_impl.cc(878)] handshake failed; returned -1, SSL error code 1, net_error -202
*** stack smashing detected ***: terminated
[0704/222539.384525:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222539.562891:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222539.816044:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
*** stack smashing detected ***: terminated
[0704/222539.944612:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222540.045360:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222540.251443:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
*** stack smashing detected ***: terminated
[0704/222540.389085:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222540.491262:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222540.701166:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
*** stack smashing detected ***: terminated
[0704/222540.847056:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222540.961886:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222541.162259:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
*** stack smashing detected ***: terminated
[0704/222541.287820:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222541.390697:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222541.612868:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
*** stack smashing detected ***: terminated
[0704/222541.733027:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222541.833175:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222542.022467:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
*** stack smashing detected ***: terminated
[0704/222542.141373:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222542.242725:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222542.439645:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
*** stack smashing detected ***: terminated
[0704/222542.564318:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222542.663895:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[12803:12803:0704/222542.850927:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=134
[12803:12803:0704/222542.850950:FATAL:gpu_data_manager_impl_private.cc(449)] GPU process isn't usable. Goodbye.
[0704/222542.856072:ERROR:ptracer.cc(605)] ptrace: Input/output error (5)
[0704/222542.978474:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0704/222543.015073:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Trace/breakpoint trap (core dumped)
我检查了缓存中的 so 文件并发现了一些符号链接(共享颜色和文本的屏幕截图):
ls -l /home/arpad/snap/chromium/common/.cache/gio-modules/
total 20
-rw-rw-r-- 1 arpad arpad 112 Jul 4 21:49 giomodule.cache
lrwxrwxrwx 1 arpad arpad 91 Jul 4 21:49 libdconfsettings.so -> /snap/chromium/2905/gnome-platform/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
lrwxrwxrwx 1 arpad arpad 91 Jul 4 21:49 libgiognomeproxy.so -> /snap/chromium/2905/gnome-platform/usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
lrwxrwxrwx 1 arpad arpad 87 Jul 4 21:49 libgiognutls.so -> /snap/chromium/2905/gnome-platform/usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
lrwxrwxrwx 1 arpad arpad 89 Jul 4 21:49 libgiolibproxy.so -> /snap/chromium/2905/gnome-platform/usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
而当我检查它们所链接的文件时,却找不到它们。甚至
/snap/chromium/2905/gnome-platform
是空的,所以模块文件夹
/snap/chromium/2905/gnome-platform/usr/lib/x86_64-linux-gnu/gio/modules
本来应该有 so 文件的地方甚至不存在。我该如何修复 Ubuntu 下损坏的 Chromium?
尽管我按照提示更新了浏览器,但我还是反复收到更新 Brave 浏览器的提示,并且我看到它来自“Snap Store”,因此我卸载并重新安装了 snapd。我卸载并重新安装了 Brave 浏览器,但现在 Brave 浏览器会尝试启动,但无法启动。
我尝试从 CLI 启动 Brave 浏览器,发生了以下情况:
el_gallo_azul@desktop-ubuntu:~$ brave
Command 'brave' not found, but can be installed with:
sudo snap install brave
el_gallo_azul@desktop-ubuntu:~S sudo snap tnstall brave
[sudo] password for el_gallo_azul:
error: cannot perform the following tasks:
Run configure hook of "brave" snap if present (run hook "configure": cannot locate base snap core22: No such file or directory)
el_gallo_azul@desktop-ubuntu:~$ standard-notes
cannot locate base snap core22: No such file or directory
el_gallo_azul@desktop-ubuntu:~$ sudo snap install core22
snap "core22" is already installed, see 'snap help refresh'
我刚刚用 Mozilla Firefox 浏览器运行了同样的操作,试图将 CLI 文本粘贴到这个 AskUbuntu 问题中,但它无法启动。当我尝试从 CLI 启动它时发生了类似的问题,当我尝试安装它时再次发生了类似的问题(尽管它已经安装好了)。
然后,我尝试使用标准 Notes 应用程序来存储此 CLI 文本,以便我可以将其跨操作系统传输并粘贴到 AskUbuntu 中,但标准 Notes 应用程序也无法启动。
我刚刚又试了一次,发现有东西core22
缺失了,然后我安装了它,但并没有什么区别。
我无法使用 Ubuntu 22.04。目前我只能使用 Tails 6.4。
编辑 20240630:根据要求,我添加以下内容。
我已经有几周没用过 Ubuntu 了,所以当我启动它时,我做的第一件事就是进行一次大更新,其中包括内核映像和大量“快照”更新。我错误地抱有希望。然后我做了以下事情。
$ brave
Command brave' not found, but can be installed with:
sudo snap install brave
$ sudo snap install brave
[sudo] password for el_gallo_azul:
error: cannot perform the following tasks:
Run configure hook of "brave" snap if present (run hook "configure": cannot locate base snap core22: No such file or directory)
$ sudo snap refresh
error: cannot perform the following tasks:
Run post-refresh hook of "firefox" snap if present (run hook "post-refresh": cannot locate base snap core22: No such file or directory)
编辑 20240704 我根据评论中的更多建议添加了以下内容。我希望我已经纠正了所有 OCR 错误。
el_gallo_azul@desktop-ubuntu:~$ sudo snap remove firefox
[sudo] password for el_gallo_azul:
error: cannot perform the following tasks:
Remove data for snap "firefox" (4424) (unlinkat /var/snap/firefox/common/host-hunspell/en_AU.aff: read-only file systen)
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~$ brave
Command 'brave' not found, but can be installed with:
sudo snap install brave
el_gallo_azul@desktop-ubuntu:~$ sudo snap install brave
error: cannot perform the following tasks:
Run configure hook of "brave" snap if present (run hook "configure": cannot locate base snap core22: No such file
el_gallo_azul@desktop-ubuntu:~$ sudo snap refresh brave
error: snap "brave" is not installed
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:-$ sudo snap refresh brave
error: snap "brave" is not installed
el_gallo_azul@desktop-ubuntu:~$ apt policy snapd
snapd:
Installed: 2.63+22.04
Candidate: 2.63+22.04
Version table:
*** 2.63+22.04 500
500 http://au.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.58+22.04.1 500
500 http://security.ubuntu.com/ubuntu jammy-security/main and64 Packages
2.55.3+22.04 500
500 http://au.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~$ cd ~/snap
el_gallo_azul@desktop-ubuntu:~/snap$ ls
canonical-livepatch drawing firefox snapd-desktop-integration snap-store standard-notes
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~/snap$ sudo apt purge snapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was autonatically installed and ts no longer required:
libopenshot25
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
snapd*
0 to upgrade, 0 O newly install, 1 to remove and 6 not to upgrade.
After this operation, 104 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 218837 files and directories currently installed.)
Removing snapd (2.63+22.04)
stopping snap.canonical-livepatch.canonical-livepatchd.service
stopping unit snap.canonical-livepatch.canonical-livepatchd.service
Maiting until unit snap.canontcal-livepatch.canontcal-livepatchd.service ls stopped [attenpt 1]
snap.canonical-livepatch.canontcal-livepatchd.service is stopped
Harning: Stopping snapd.service, but it can still be activated by:
snapd.socket
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1)
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for matlcap (3.70+nmulubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
(Reading database ... 218747 files and directories currently installed.)
Purging configuration files for snapd (2.63+22.04)
Stopping snap.canontcal-livepatch.canonical-livepatchd.service
"..
Stopping unit snap.canonical-livepatch.canonical-livepatchd.service
Hatting until untt snap.canontcal-livepatch.canontcal-Ltvepatchd.service is stopped [attenpt 1]
snap.canonical-livepatch.canonical-livepatchd.service is stopped
Removing snap.canonical-livepatch.canonical-livepatchd.service
Stopping snap-bare-5.mount
Stopping unit snap-bare-5.mount
Waiting until unit snap-bare-5.nount is stopped [attempt 1]
snap-bare-5.mount ts stopped
Removing snap bare and revision 5
Removing snap-bare-5.mount
Stopping snap-canonical\x2dlivepatch-282.mount
Stopping unit snap-canonical\x2dlivepatch-282.mount
Hatting until untt snap-canontcal\x2dltvepatch-282.mount ts stopped [attenpt 1]
snap-canonical|x2dlivepatch-282.mount is stopped.
Removing snap canontcal-livepatch and reviston 282
Removing snap-canonical\x2dlivepatch-282.mount
Stopping snap-core18- 2823.mount
Stopping untt snap-core18-2823 Mount
Waiting untll unit snap-core18-2823.mount ts stopped [attempt 1]
snap-core18-2823.mount is stopped.
Removing snap core18 and reviston 2823
Removing snap-core18-2823.mount
Stopping snap- core18-2829.
Mount
Stopping untt snap-core18-2829.mount
Hatting untll untt snap-core18-2829.mount ls stopped [attenpt 1]
Snap- Core18-2829. .nount ts stopped.
Removing SOAD core1R and revision 7879
(remove overlap)
snap-core18-2829.mount is stopped
Removing snap core18 and revision 2829
Removing snap-core18-2829.mount
Stopping snap-core20-2318.mount
Stopping untt snap-core20-2318.mount
Waiting until untt snap-core20-2318.mount is stopped [attempt 1]
snap-core20-2318.mount is stopped.
Removing snap core20 and revision 2318
Removing snap-core20-2318.mount
Stopping snap-core22-1380.mount
Stopping unit snap-core22-1380.mount
Waiting until unit snap-core22-1380.mount is stopped [attempt 1]
Removing snap core22 and revision 1380
Removing snap-core22-1380.mount
Stopping snap-firefox-4424.mount
Stopping unit snap-firefox-4424.mount
Waiting until unit snap-firefox-4424.mount is stopped [attempt 1]
snap-firefox-4424.mount is stopped.
Removing snap firefox and revision 4424
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_AU.aff': Read-only file system
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_AU.dic': Read-only file system
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_US.aff': Read-only file system
rm: cannot remove '/var/snap/firefox/common/host-hunspell/en_US.dic': Read-only file systen
dpkg: error processing package snapd (--purge):
installed snapd package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
snapd
E: Sub-process /usr/btn/dpkg returned_an error code (1)
el_gallo_azul@desktop-ubuntu:~$
el_gallo_azul@desktop-ubuntu:~$ sudo snap refresh
[sudo] password for el_gallo_azul:
All snaps up to date.
el_gallo_azul@desktop-ubuntu:-$
最后,snap list
我无法提取列中的文本,因此我附上了相应的图像:
命令
flatpak list --app
只会列出已安装的应用程序,而不是共享/平台组件/库,如FreeDesktop、Gtk、bare
等core22
。
有没有与 Snap 相当的产品?我看了看(无果):
snap list --help