似乎 xdg-open、gio-open 无法与磁力链接配合使用?以下是输出。它显示“ipcinterface:220 没有这样的文件:/home/yding/magnet:/?...”,但它是 URL 而不是本地文件。
yding@zbox:~$ xdg-open 'magnet:?xt=urn:btih:ADBFF7EA0E936FCED6F3D088276CACC7F41D050F&dn=bbb_sunflower_1080p_30fps_stereo_abl.mp4&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&ws=http%3a%2f%2fdistribution.bbb3d.renderfarming.net%2fvideo%2fmp4%2fbbb_sunflower_1080p_30fps_stereo_abl.mp4' 此工具已弃用,请改用“gio open”。请参阅“gio help open”了解更多信息。 /usr/share/themes/Ambiance/gtk-2.0/apps/mate-panel.rc:30: 错误:无效的字符串常量“murrine-scrollbar”,预期有效的字符串常量 /usr/lib/python2.7/dist-packages/deluge/_libtorrent.py:59: RuntimeWarning: boost::shared_ptr 的 Python 转换器已注册;第二种转换方法被忽略。import libtorrent as lt [错误] 09:45:45 ipcinterface:220 没有此文件:/home/yding/magnet:/?xt=urn:btih:ADBFF7EA0E936FCED6F3D088276CACC7F41D050F&dn=bbb_sunflower_1080p_30fps_stereo_abl.mp4&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&ws=http%3a%2f%2fdistribution.bbb3d.renderfarming.net%2fvideo%2fmp4%2fbbb_sunflower_1080p_30fps_stereo_abl.mp4 yding@zbox:~$ gio open 'magnet:?xt=urn:btih:ADBFF7EA0E936FCED6F3D088276CACC7F41D050F&dn=bbb_sunflower_1080p_30fps_stereo_abl.mp4&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&ws=http%3a%2f%2fdistribution.bbb3d.renderfarming.net%2fvideo%2fmp4%2fbbb_sunflower_1080p_30fps_stereo_abl.mp4' /usr/share/themes/Ambiance/gtk-2.0/apps/mate-panel.rc:30: 错误:无效的字符串常量“murrine-scrollbar”,预期有效的字符串常量 /usr/lib/python2.7/dist-packages/deluge/_libtorrent.py:59: RuntimeWarning: boost::shared_ptr 的 Python 转换器已注册;第二种转换方法被忽略。import libtorrent as lt [错误] 09:46:28 ipcinterface:220 没有此文件:/home/yding/magnet:/?xt=urn:btih:ADBFF7EA0E936FCED6F3D088276CACC7F41D050F&dn=bbb_sunflower_1080p_30fps_stereo_abl.mp4&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&ws=http%3a%2f%2fdistribution.bbb3d.renderfarming.net%2fvideo%2fmp4%2fbbb_sunflower_1080p_30fps_stereo_abl.mp4
我使用 chrome 和 deluge。在之前的 ubuntu 17.04 上,单击 chrome 中的磁力链接将启动 deluge 并弹出新的下载任务。在 ubuntu 17.10 上,执行同样的事情只能启动 deluge 而不会弹出新的下载任务。我认为这与上面输出中提到的错误有关。使用 deluge-gtk 和磁力链接可以正常工作。Deluge 启动和新下载任务弹出窗口按预期显示。
yding@zbox:~$ deluge-gtk 'magnet:?xt=urn:btih:ADBFF7EA0E936FCED6F3D088276CACC7F41D050F&dn=bbb_sunflower_1080p_30fps_stereo_abl.mp4&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.publicbt.com%3a80%2fannounce&ws=http%3a%2f%2fdistribution.bbb3d.renderfarming.net%2fvideo%2fmp4%2fbbb_sunflower_1080p_30fps_stereo_abl.mp4' /usr/share/themes/Ambiance/gtk-2.0/apps/mate-panel.rc:30: 错误:无效的字符串常量“murrine-scrollbar”,预期有效的字符串常量 /usr/lib/python2.7/dist-packages/deluge/_libtorrent.py:59: RuntimeWarning: boost::shared_ptr 的 Python 转换器已注册;第二种转换方法被忽略。import libtorrent as lt
有人遇到过同样的问题吗?有解决办法吗?
答案1
目前,您可以手动下载适用于 bionic(Ubuntu 18.x)的 libglib-2.0-0 和 libglib-2.0-bin,并使用 dpkg 安装它以修复此问题,直到 17.10 更新到较新版本的 libglib-2.0-0
安装 https://packages.ubuntu.com/bionic/libglib2.0-0
二进制文件 https://packages.ubuntu.com/bionic/libglib2.0-bin
我遇到了同样的问题,安装上述软件包解决了我在 Ubuntu 17.10 中遇到的问题