所以,我有一个未注释的 deb-src,但仍然被告知我没有任何源 URI...
$ sudo apt-get source sliceconfig
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list
$ cat /etc/apt/sources.list.d/makerbot.list
deb http://downloads.makerbot.com/makerware/ubuntu xenial main
deb-src http://downloads.makerbot.com/makerware/ubuntu xenial main
出于一时的兴趣,我尝试将该行移至sources.list,但没有任何乐趣。
是否只是所讨论的 URI 指向任何地方,在这种情况下,错误消息毫无帮助地产生误导?
[根据评论中的要求,完整输出sudo apt-get update
]
Hit:1 http://prerelease.keybase.io/deb stable InRelease
Ign:2 http://kxstudio.linuxaudio.org/repo gcc5 InRelease
Hit:3 http://nightly.apt.ring.cx/ubuntu_16.04 ring InRelease
Ign:4 http://downloads.makerbot.com/makerware/ubuntu xenial InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:7 http://kxstudio.linuxaudio.org/repo stable InRelease
Hit:8 http://downloads.makerbot.com/makerware/ubuntu xenial Release
Hit:9 http://archive.canonical.com/ubuntu xenial InRelease
Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
Ign:11 http://linux.dropbox.com/ubuntu wily InRelease
Hit:12 http://ppa.launchpad.net/kxstudio-debian/ubuntus/ubuntu xenial InRelease
Hit:13 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:14 http://kxstudio.linuxaudio.org/repo gcc5 Release
Ign:15 http://dl.google.com/linux/talkplugin/deb stable InRelease
Hit:16 http://kxstudio.linuxaudio.org/repo stable Release
Hit:17 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:18 http://ppa.launchpad.net/kxstudio-debian/gcc5/ubuntu wily InRelease
Get:19 http://linux.dropbox.com/ubuntu wily Release [6,596 B]
Hit:20 http://dl.google.com/linux/chrome/deb stable Release
Hit:21 http://ppa.launchpad.net/kxstudio-debian/gcc5/ubuntu xenial InRelease
Hit:22 http://dl.google.com/linux/talkplugin/deb stable Release
Hit:23 http://ppa.launchpad.net/kxstudio-debian/gcc5-deps/ubuntu xenial InRelease
Hit:24 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu lucid InRelease
Ign:25 http://ppa.launchpad.net/kxstudio-debian/music/ubuntu lucid InRelease
Hit:26 http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu lucid InRelease
Hit:27 http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu lucid InRelease
Ign:29 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu lucid InRelease
Hit:30 https://deb.opera.com/opera-stable stable InRelease
Hit:31 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu trusty InRelease
Hit:32 http://ppa.launchpad.net/kxstudio-debian/music/ubuntu trusty InRelease
Hit:33 http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu trusty InRelease
Hit:34 http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu trusty InRelease
Hit:35 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu trusty InRelease
Hit:36 http://ppa.launchpad.net/mumble/release/ubuntu xenial InRelease
Hit:37 http://ppa.launchpad.net/kxstudio-debian/music/ubuntu lucid Release
Hit:39 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu lucid Release
Hit:41 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 101 kB in 5s (19.1 kB/s)
Reading package lists...
W: http://downloads.makerbot.com/makerware/ubuntu/dists/xenial/Release.gpg: Signature by key ABB736EB5F9C4CF4A25277973D019B838FB1487F uses weak digest algorithm (SHA1)
W: http://kxstudio.linuxaudio.org/repo/dists/gcc5/Release.gpg: Signature by key 037E0CAFCAA96B99901CB0D52D3445A829213837 uses weak digest algorithm (SHA1)
W: http://kxstudio.linuxaudio.org/repo/dists/stable/Release.gpg: Signature by key 037E0CAFCAA96B99901CB0D52D3445A829213837 uses weak digest algorithm (SHA1)
W: http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu/dists/lucid/InRelease: Signature by key DF1BC724E4ED8A947FF0B0A1F8599E482BD84BD9 uses weak digest algorithm (SHA1)
W: http://ppa.launchpad.net/kxstudio-debian/music/ubuntu/dists/lucid/Release.gpg: Signature by key DF1BC724E4ED8A947FF0B0A1F8599E482BD84BD9 uses weak digest algorithm (SHA1)
W: http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu/dists/lucid/Release.gpg: Signature by key DF1BC724E4ED8A947FF0B0A1F8599E482BD84BD9 uses weak digest algorithm (SHA1)
答案1
更新:Ubuntourist(又名 kjcole)通过更正 sliceconfig 中奇怪的 Python V3.4 依赖项解决了该问题。
他的修复如下: https://github.com/makerbot/mw-scons-tools/issues/27
有关如何应用他的修复程序的说明也在那里......并在此重复:
通过以下方式下载有问题的 sliceconfig deb 安装包:
sudo apt-get download sliceconfig --allow-unauthenticated
将 deb 包提取到其组成组件中,然后还提取 data.tar.xz data.tar.xz 内部是 python 文件: ./usr/bin/sliceconfig 根据 kjcole 的说明将第一行更改为:
#!/usr/bin/env python3.4
对此:
#!/usr/bin/env python3
现在...重新压缩 data.tar.xz 文件 并将原始 deb 包内容(带有更新的 sliceconfig 文件)重新压缩为 tar.xz 文件 运行此命令将 tar.xz 转换为正确的 .deb 安装包(注意:您可能需要 sudo apt-get install Alien)
sudo alien --to-deb ~/Desktop/filename.tar.gz
现在您应该能够在固定的 .deb 包上使用 deb 安装最后...您应该能够:
sudo apt-get install makerware