如果 snap 不包含源代码,我该如何满足 GPL v2 等许可证的分发要求?在 yaml 中包含源代码链接算书面要约吗?我知道这更多的是一个解释问题,但我很感谢社区的不同观点。
我在空间受限的 LVM 上运行基本 DNS 服务器。我注意到有大约 250 MB 的快照 - 我可以从我的 VM 中删除它们吗?
快照是“core20,lxd 和 snapd”。
我知道我的 DNS 服务器没有使用快照 - 而且我不知道它们有什么作用或者为什么它们在那里。
当我使用 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 安装中运行正常。
笔记
- 从 Ricoh 网站安装最新的驱动程序(
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
- SANE 记录了扫描仪的支持情况。
从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
尝试开始扫描时打开超时。
我已经阅读过的资源
- http://www.sane-project.org/man/sane-fujitsu.5.html
- http://origin.pfultd.com/downloads/IMAGE/fi/ubuntu/280/P2U3-0200-07ENZ0.pdf
- https://wiki.archlinux.org/title/SANE/Scanner-specific_problems#Fujitsu_fi_series
- 简单扫描无法找到扫描仪
- 简单扫描未检测到扫描仪
- 简单扫描无法识别佳能 LiDE 25
- https://superuser.com/questions/1396187/sane-stopped-detecting-usb-scanner
- https://forums.linuxmint.com/viewtopic.php?t=394683
当 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?