分页: 1 / 1

请问,我怎么获得软件包的原代码?

发表于 : 2005-10-26 10:10
Georock
我用sudo apt-get install 了tochnog,我想获得tochnog的原码,我该怎么做?谢谢。
我的sources.list是

deb http://archive.ubuntu.org.cn/ubuntu breezy main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu breezy-security main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu breezy-updates main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn ubuntu.org.cn main universe multiverse restricted

发表于 : 2005-10-26 11:11
leal
加 deb-src 源地址

发表于 : 2005-10-26 11:29
BIN
添加源地址后用命令:apt-get source packagename

发表于 : 2005-10-26 15:01
Georock
谢谢,我现在 把 sources.list 改成 了:
deb http://archive.ubuntu.org.cn/ubuntu breezy main restricted universe multiverse
deb-src http://archive.ubuntu.org.cn/ubuntu breezy main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu breezy-security main restricted universe multiverse
deb-src http://archive.ubuntu.org.cn/ubuntu breezy-security main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu breezy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.org.cn/ubuntu breezy-updates main restricted universe multiverse
但还是下载不了tochnog的源代码:
"无法下载 http://archive.ubuntu.org.cn/ubuntu/dis ... Sources.gz MD5 校验和不符
正在读取软件包列表... 完成
E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
wzp@ubuntu:~$ sudo apt-get source tochnog
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
E: 无法打开文件 /var/lib/apt/lists/archive.ubuntu.org.cn_ubuntu_dists_breezy-security_universe_source_Sources - open (2 没有那个文件或目录)"

我改sources.list 后用了sudo apt-get update 了。

发表于 : 2005-10-26 15:02
leal
确定源里有? 不行用google上其主页下吧 又不是什么难事

发表于 : 2005-10-26 15:31
Georock
从源里安装了可执行文件,会有对应的源代码吗?
从主页上下的自己编译不能通过。
谢谢。

发表于 : 2005-10-26 15:54
leal
首先,自己编译不能通过不一定是源码本身的问题;
另,如果不是官方维护的软件包不一定有对应的源码;

三,软件本身的用户手册和帮助 要仔细看看先

发表于 : 2005-10-26 15:59
oneleaf
Georock 写了:谢谢,我现在 把 sources.list 改成 了:
deb http://archive.ubuntu.org.cn/ubuntu breezy main restricted universe multiverse
deb-src http://archive.ubuntu.org.cn/ubuntu breezy main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu breezy-security main restricted universe multiverse
deb-src http://archive.ubuntu.org.cn/ubuntu breezy-security main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu breezy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.org.cn/ubuntu breezy-updates main restricted universe multiverse
但还是下载不了tochnog的源代码:
"无法下载 http://archive.ubuntu.org.cn/ubuntu/dis ... Sources.gz MD5 校验和不符
正在读取软件包列表... 完成
E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
wzp@ubuntu:~$ sudo apt-get source tochnog
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
E: 无法打开文件 /var/lib/apt/lists/archive.ubuntu.org.cn_ubuntu_dists_breezy-security_universe_source_Sources - open (2 没有那个文件或目录)"

我改sources.list 后用了sudo apt-get update 了。
由于服务器空间不够完全镜像需要150G,所以取消了源的镜像,因此
deb-src 必须使用 http://archive.ubuntu.com/ubuntu

发表于 : 2005-10-26 16:54
Georock
换了 deb-src http://archive.ubuntu.com/ubuntu 的 源后搞好了,谢谢你们哦.