分页: 1 / 1

关于下软件库源服务器的地址

发表于 : 2006-10-14 15:22
复仇
deb http://cn.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://cn.archive.ubuntu.com/ubuntu/ dapper universe
# deb-src http://cn.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://cn.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
# deb http://security.ubuntu.com/ubuntu dapper-security universe
# deb-src http://security.ubuntu.com/ubuntu dapper-security universe


我改指向中国的服务器以获得更快的下载速度
但怎么改?

发表于 : 2006-10-14 15:28
goldfox_79
1. $sudo gedit /etc/apt/source.list

2. 把其中的内容全部删掉,然后将下面的代码拷贝进去
deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse

3. 保存文件关闭gedit,进入新利得按刷新按钮,或者在终端中输入 $sudo apt-get update

发表于 : 2006-10-14 15:34
复仇
goldfox_79 写了:1. $sudo gedit /etc/apt/source.list

2. 把其中的内容全部删掉,然后将下面的代码拷贝进去
deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse

3. 保存文件关闭gedit,进入新利得按刷新按钮,或者在终端中输入 $sudo apt-get update
安装ATI的卡是不是sudo apt-get install ATI-glx

发表于 : 2006-10-14 15:39
goldfox_79
复仇 写了:安装ATI的卡是不是sudo apt-get install ATI-glx
这里说的很详细

ATI显卡安装配置指南

发表于 : 2006-10-14 16:02
复仇
goldfox_79 写了:
复仇 写了:安装ATI的卡是不是sudo apt-get install ATI-glx
这里说的很详细

ATI显卡安装配置指南

sudo apt-get update
rong@rong-desktop:~$ sudo apt-get update
Password:

这里输入不了密码阿。。按什么都没反应

发表于 : 2006-10-14 16:06
goldfox_79
复仇 写了: sudo apt-get update
rong@rong-desktop:~$ sudo apt-get update
Password:

这里输入不了密码阿。。按什么都没反应
在终端中输入密码时,不会有任何字符显示(比如常见的*),输完之后直接按回车就好了。

发表于 : 2006-10-14 16:07
dbzhang800
密码不显示的,输完回车就行

发表于 : 2006-10-14 16:12
复仇
goldfox_79 写了:
复仇 写了: sudo apt-get update
rong@rong-desktop:~$ sudo apt-get update
Password:

这里输入不了密码阿。。按什么都没反应
在终端中输入密码时,不会有任何字符显示(比如常见的*),输完之后直接按回车就好了。
获取:1 http://cn.archive.ubuntu.com dapper Release.gpg [189B]
获取:2 http://cn.archive.ubuntu.com dapper-updates Release.gpg [191B]
命中 http://cn.archive.ubuntu.com dapper Release
命中 http://cn.archive.ubuntu.com dapper-updates Release
命中 http://cn.archive.ubuntu.com dapper/main Packages
命中 http://cn.archive.ubuntu.com dapper/restricted Packages
命中 http://cn.archive.ubuntu.com dapper/main Sources
命中 http://cn.archive.ubuntu.com dapper/restricted Sources
命中 http://cn.archive.ubuntu.com dapper-updates/main Packages
命中 http://cn.archive.ubuntu.com dapper-updates/restricted Packages
命中 http://cn.archive.ubuntu.com dapper-updates/main Sources
命中 http://cn.archive.ubuntu.com dapper-updates/restricted Sources
获取:3 http://security.ubuntu.com dapper-security Release.gpg [191B]
命中 http://security.ubuntu.com dapper-security Release
命中 http://security.ubuntu.com dapper-security/main Packages
命中 http://security.ubuntu.com dapper-security/restricted Packages
命中 http://security.ubuntu.com dapper-security/main Sources
命中 http://security.ubuntu.com dapper-security/restricted Sources
下载 3B,耗时 16s (0B/s)
正在读取软件包列表... 完成
rong@rong-desktop:~$ sudo apt-get install linux-restricted-modules-$(uname -r)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
linux-restricted-modules-2.6.15-27-386 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
有 3 个软件包没有被完全安装或卸载。
需要下载 0B 的软件包。
解压缩后会消耗掉 0B 的额外空间。
正在设置 clvm (2.02.02-1ubuntu1) ...
Starting Cluster LVM Daemon clvmd could not connect to cluster manager
Consult syslog for more information
invoke-rc.d: initscript clvm, action "start" failed.
dpkg:处理 clvm (--configure)时出错:
子进程·post-installation script·返回了错误号·3
dpkg:依赖关系问题使得 redhat-cluster-suite 的配置工作不能继续:
redhat-cluster-suite 依赖于 clvm;然而:
软件包 clvm还没有被配置。
dpkg:处理 redhat-cluster-suite (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 system-config-cluster 的配置工作不能继续:
system-config-cluster 依赖于 redhat-cluster-suite;然而:
软件包 redhat-cluster-suite还没有被配置。
dpkg:处理 system-config-cluster (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
clvm
redhat-cluster-suite
system-config-cluster
E: Sub-process /usr/bin/dpkg returned an error code (1)

是不是出错了?

发表于 : 2006-10-14 16:20
goldfox_79
复仇 写了: 获取:1 http://cn.archive.ubuntu.com dapper Release.gpg [189B]
获取:2 http://cn.archive.ubuntu.com dapper-updates Release.gpg [191B]
命中 http://cn.archive.ubuntu.com dapper Release
命中 http://cn.archive.ubuntu.com dapper-updates Release
命中 http://cn.archive.ubuntu.com dapper/main Packages
命中 http://cn.archive.ubuntu.com dapper/restricted Packages
命中 http://cn.archive.ubuntu.com dapper/main Sources
命中 http://cn.archive.ubuntu.com dapper/restricted Sources
命中 http://cn.archive.ubuntu.com dapper-updates/main Packages
命中 http://cn.archive.ubuntu.com dapper-updates/restricted Packages
命中 http://cn.archive.ubuntu.com dapper-updates/main Sources
命中 http://cn.archive.ubuntu.com dapper-updates/restricted Sources
获取:3 http://security.ubuntu.com dapper-security Release.gpg [191B]
命中 http://security.ubuntu.com dapper-security Release
命中 http://security.ubuntu.com dapper-security/main Packages
命中 http://security.ubuntu.com dapper-security/restricted Packages
命中 http://security.ubuntu.com dapper-security/main Sources
命中 http://security.ubuntu.com dapper-security/restricted Sources
下载 3B,耗时 16s (0B/s)
正在读取软件包列表... 完成
这段说明你的apt-get update执行成功
复仇 写了: rong@rong-desktop:~$ sudo apt-get install linux-restricted-modules-$(uname -r)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
linux-restricted-modules-2.6.15-27-386 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
级linux核,返回信息说你的核已经是最新的了。
复仇 写了: 有 3 个软件包没有被完全安装或卸载。
需要下载 0B 的软件包。
解压缩后会消耗掉 0B 的额外空间。
正在设置 clvm (2.02.02-1ubuntu1) ...
Starting Cluster LVM Daemon clvmd could not connect to cluster manager
Consult syslog for more information
invoke-rc.d: initscript clvm, action "start" failed.
dpkg:处理 clvm (--configure)时出错:
子进程·post-installation script·返回了错误号·3
dpkg:依赖关系问题使得 redhat-cluster-suite 的配置工作不能继续:
redhat-cluster-suite 依赖于 clvm;然而:
软件包 clvm还没有被配置。
dpkg:处理 redhat-cluster-suite (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 system-config-cluster 的配置工作不能继续:
system-config-cluster 依赖于 redhat-cluster-suite;然而:
软件包 redhat-cluster-suite还没有被配置。
dpkg:处理 system-config-cluster (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
clvm
redhat-cluster-suite
system-config-cluster
E: Sub-process /usr/bin/dpkg returned an error code (1)
这段出问题了,原因是你以前可能安装过clvm, redhat-cluster-suit, system-config-cluster三个包,但是在安装过程中可耻地失败了,导致数据库中的数据不正常,新利得才会报错。

发表于 : 2006-10-14 16:46
复仇
goldfox_79 写了:
复仇 写了: 获取:1 http://cn.archive.ubuntu.com dapper Release.gpg [189B]
获取:2 http://cn.archive.ubuntu.com dapper-updates Release.gpg [191B]
命中 http://cn.archive.ubuntu.com dapper Release
命中 http://cn.archive.ubuntu.com dapper-updates Release
命中 http://cn.archive.ubuntu.com dapper/main Packages
命中 http://cn.archive.ubuntu.com dapper/restricted Packages
命中 http://cn.archive.ubuntu.com dapper/main Sources
命中 http://cn.archive.ubuntu.com dapper/restricted Sources
命中 http://cn.archive.ubuntu.com dapper-updates/main Packages
命中 http://cn.archive.ubuntu.com dapper-updates/restricted Packages
命中 http://cn.archive.ubuntu.com dapper-updates/main Sources
命中 http://cn.archive.ubuntu.com dapper-updates/restricted Sources
获取:3 http://security.ubuntu.com dapper-security Release.gpg [191B]
命中 http://security.ubuntu.com dapper-security Release
命中 http://security.ubuntu.com dapper-security/main Packages
命中 http://security.ubuntu.com dapper-security/restricted Packages
命中 http://security.ubuntu.com dapper-security/main Sources
命中 http://security.ubuntu.com dapper-security/restricted Sources
下载 3B,耗时 16s (0B/s)
正在读取软件包列表... 完成
这段说明你的apt-get update执行成功
复仇 写了: rong@rong-desktop:~$ sudo apt-get install linux-restricted-modules-$(uname -r)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
linux-restricted-modules-2.6.15-27-386 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
级linux核,返回信息说你的核已经是最新的了。
复仇 写了: 有 3 个软件包没有被完全安装或卸载。
需要下载 0B 的软件包。
解压缩后会消耗掉 0B 的额外空间。
正在设置 clvm (2.02.02-1ubuntu1) ...
Starting Cluster LVM Daemon clvmd could not connect to cluster manager
Consult syslog for more information
invoke-rc.d: initscript clvm, action "start" failed.
dpkg:处理 clvm (--configure)时出错:
子进程·post-installation script·返回了错误号·3
dpkg:依赖关系问题使得 redhat-cluster-suite 的配置工作不能继续:
redhat-cluster-suite 依赖于 clvm;然而:
软件包 clvm还没有被配置。
dpkg:处理 redhat-cluster-suite (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 system-config-cluster 的配置工作不能继续:
system-config-cluster 依赖于 redhat-cluster-suite;然而:
软件包 redhat-cluster-suite还没有被配置。
dpkg:处理 system-config-cluster (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
clvm
redhat-cluster-suite
system-config-cluster
E: Sub-process /usr/bin/dpkg returned an error code (1)
这段出问题了,原因是你以前可能安装过clvm, redhat-cluster-suit, system-config-cluster三个包,但是在安装过程中可耻地失败了,导致数据库中的数据不正常,新利得才会报错。
那我该怎么装了??删除之前的?

发表于 : 2006-10-14 16:57
goldfox_79
怎么删除这三个我不太清楚试试 apt-get remove

不过这三个错误不影响你安装其它软件

发表于 : 2006-10-14 17:33
复仇
goldfox_79 写了:怎么删除这三个我不太清楚试试 apt-get remove

不过这三个错误不影响你安装其它软件
rong@rong-desktop:~$ apt-get remove
E: 无法打开锁文件 /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
rong@rong-desktop:~$

发表于 : 2006-10-14 17:39
goldfox_79
复仇 写了: rong@rong-desktop:~$ apt-get remove
E: 无法打开锁文件 /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
rong@rong-desktop:~$
安装ubuntu时创建的帐号(rong)只有一般权限,要想删除添加软件,更改系统设置,都需要有root权限才成。所以apt-get命令前一定要有个sudo

$sudo apt-get remove 你要删除的软件包的名称