找回密码
 注册
查看: 745|回复: 3

debian 新手 软件安装

[复制链接]
发表于 2004-4-4 20:38:16 | 显示全部楼层 |阅读模式
[code:1]
安装了debian ,想装gcc
键入:
apt-get install gcc
屏幕提示:
reading package lists...done
building dependency tree ...done
package gcc has no available version , but exists in database
this typically means that the package was mentioned in a dependency and never uploaded ,has been obsoleted or is not available with the contents of sources.list
however the forllowing packages replace it:
gcc++-3.0
W:couldnt stat source package list ftp://61.172.200.169  main/non-free packages (/var/lib/apt/lists/61.172.200.169-debian-sid-dists-main-nonfree-binary-i386-packages)
-stata (2 No such file or directory)
W::couldnt stat source package list ftp://61.172.200.169  main/contrib package (/var/lib/apt/lists/61.172.200.169-debian-sid-dists-main-contrib-binary-i386-packages)-stata (2 No such file or directory)
W:you many want to run apt-get update to correct these problems
E:package gcc has no installation candidate
[/code:1]
上面提示的错误,是不是 sources.list  的问题?大家的sources.list 具体是怎样写的?能贴出来看 看吗?

小弟第一次安装debian , 有很多都不懂。不知各位都是怎样安装软件的,一般有那几种安装方法,是通过什么途径安装的?

thanks
发表于 2004-4-4 22:24:02 | 显示全部楼层
我用的是 geekbone 的,不少人说 cn99 也很快,没try 过
my sources.list
[code:1]
# mplayer for debian
deb ftp://ftp.nerim.net/debian-marillat/ unstable main

# mirrors.geekbone.org
deb http://mirrors.geekbone.org/debian/ unstable main
deb-src http://mirrors.geekbone.org/debian/ unstable main

deb http://mirrors.geekbone.org/debian/ unstable contrib
deb-src http://mirrors.geekbone.org/debian/ unstable contrib

deb http://mirrors.geekbone.org/debian/ unstable non-free
deb-src http://mirrors.geekbone.org/debian/ unstable non-free

deb http://mirrors.geekbone.org/debian-non-US unstable/non-US main
deb-src http://mirrors.geekbone.org/debian-non-US unstable/non-US main

deb http://mirrors.geekbone.org/debian-non-US unstable/non-US contrib
deb-src http://mirrors.geekbone.org/debian-non-US unstable/non-US contrib

deb http://mirrors.geekbone.org/debian-non-US unstable/non-US non-free
deb-src http://mirrors.geekbone.org/debian-non-US unstable/non-US non-free


deb http://security.debian.org/ stable/updates main contrib non-free

[/code:1]
回复

使用道具 举报

发表于 2004-4-5 14:03:36 | 显示全部楼层
gcc在BaseSystem里面不是已经默认安装了吗?
回复

使用道具 举报

发表于 2004-4-7 16:13:59 | 显示全部楼层
谁说的,没有的事。
Base System装没这个东西的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-7-19 11:27 , Processed in 0.022697 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表