Ubuntu 9.10正式版我已经在用了,用的是台湾的源直接升级的。

1.sudo gedit /etc/apt/sources.list
编辑你的源列表,将原来的内容全部删除,添加下面列表中最适合你的源(注意不要全部添加),选择一个最合适你的即可,复制到你的列表中,然后保存列表。

2.sudo apt-get update 更新源列表信息
可以在运行“sudo apt-get update ”时查看一下错误信息,把不能连接的源删除再重新运行“sudo apt-get update ”。

3.sudo apt-get upgrade  升级

或者用ubuntu自带的更新管理器升级也可


Ubuntu 9.10源列表:

台湾

代码:
deb http://tw.archive.ubuntu.com/ubuntu/ karmic main universe restricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ karmic-updates universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ karmic-proposed universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ karmic-security universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ karmic-backports main multiverse restricted universe
deb-src http://tw.archive.ubuntu.com/ubuntu/ karmic main universe restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ karmic-security universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ karmic-updates universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ karmic-proposed universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ karmic-backports universe main multiverse restricted


网易

代码:
deb http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse

 

SRT Sources

代码:
deb http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ karmic-backports main restricted universe multiverse


搜狐(速度很快,稍微不完整)

代码:
deb http://mirrors.sohu.com/ubuntu/ karmic main restricted
deb-src http://mirrors.sohu.com/ubuntu/ karmic main restricted
deb http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ karmic-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ karmic universe
deb-src http://mirrors.sohu.com/ubuntu/ karmic universe
deb http://mirrors.sohu.com/ubuntu/ karmic-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ karmic-updates universe
deb http://mirrors.sohu.com/ubuntu/ karmic multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic multiverse
deb http://mirrors.sohu.com/ubuntu/ karmic-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ karmic-updates multiverse




北京交通大学

代码:
deb http://mirror.bjtu.edu.cn/ubuntu/ karmic main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ karmic-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ karmic-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ karmic-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ karmic-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ karmic main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ karmic-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ karmic-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ karmic-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ karmic-updates main multiverse restricted universe



马来西亚

代码:
deb http://archive.mmu.edu.my/ubuntu/ karmic main restricted universe multiverse
deb http://archive.mmu.edu.my/ubuntu/ karmic-security main restricted universe multiverse
deb http://archive.mmu.edu.my/ubuntu/ karmic-updates main restricted universe multiverse
deb http://archive.mmu.edu.my/ubuntu/ karmic-proposed main restricted universe multiverse
deb http://archive.mmu.edu.my/ubuntu/ karmic-backports main restricted universe multiverse
deb-src http://archive.mmu.edu.my/ubuntu/ karmic main restricted universe multiverse
deb-src http://archive.mmu.edu.my/ubuntu/ karmic-security main restricted universe multiverse
deb-src http://archive.mmu.edu.my/ubuntu/ karmic-updates main restricted universe multiverse
deb-src http://archive.mmu.edu.my/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://archive.mmu.edu.my/ubuntu/ karmic-backports main restricted universe multiverse



江苏双线

代码:
deb http://mirror.lupaworld.com/ubuntu karmic main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu karmic-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu karmic-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu karmic-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn karmic main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ karmic-proposed main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic-security main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic-updates main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu karmic-backports main restricted universe multiverse
deb-src http://mirror.lupaworld.com/ubuntu/ karmic-proposed main restricted universe multiverse



日本

代码:
deb http://jp.archive.ubuntu.com/ubuntu/ karmic main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ karmic-security universe main multiverse restricted
deb http://jp.archive.ubuntu.com/ubuntu/ karmic-updates universe main multiverse restricted
deb http://jp.archive.ubuntu.com/ubuntu/ karmic-proposed universe main multiverse restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ karmic main universe restricted multiverse
deb-src http://jp.archive.ubuntu.com/ubuntu/ karmic-proposed universe main multiverse restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ karmic-security universe main multiverse restricted
deb-src http://jp.archive.ubuntu.com/ubuntu/ karmic-updates universe main multiverse restricted

 

展望Ubuntu10.04 LTS(长期支持版)的性能

 

 

 

[CODE lang=”c”]
// 名 称 (Unit Name) : 链表List.h 头文件
// 支 持 (Support) : http://www.ourys.com
#ifndef _LIST_H
#define _LIST_H
template
class List;
/*———— 用友元类做节点 ————–*/
template
class ListNode{
public:
ListNode():next(NULL){} //用构造函数初始化指针
friend class List;
private:
DataType data;
ListNode* next;
};
/*———— 链表的定义 ————–*/
template
class List{
public:
List(); //构造带头节点的链表
~List(); //销毁线性表
void ClearList(); //将表重置为空表
bool ListEmpty(); //若为空表存在返回True
int ListLength(); //返回表中数据元素个数
bool GetElem(int i,DataType &e);//用e返回表中第i个元素的值
bool ListInsert(int i,DataType e);//在第i个元素后插入值e
bool ListDelete(int i,DataType &e);//删除第i个元素的值并返回
private:
ListNode* head; //头节点
int len; //链表长度
};
/*———— 构造带头节点的链表 ————–*/
template
List::List()
{
if(!(head=(ListNode*)malloc(sizeof(ListNode)))) exit(1);
len=0;
}
/*———— 销毁链表 ————–*/
template
List::~List()
{
DataType e;
while(len!=0) ListDelete(1,e);
free(head);
head=NULL;
}
/*———— 销毁链表 ————–*/
template
bool List::ListEmpty()
{
return len==0? true:false;
}
/*———— 返回表中数据元素个数 ————–*/
template
int List::ListLength()
{
return len;
}
/*———— 用e返回表中第i个元素的值 ————–*/
template
bool List::GetElem(int i, DataType &e)
{
if(ilen||len==0) return false;
else{
ListNode* p=head;
for(i;i>0;i–) p=p->next;
e=p->data;
return true;
}
}
/*———— 在第i个元素后插入值e ————–*/
template
bool List::ListInsert(int i,DataType e)
{
if(ilen) return false;
else{
ListNode* p;
if(!(p=(ListNode*)malloc(sizeof(ListNode)))) exit(1);
p->data=e;
if(i==0) {p->next=head->next;head->next=p;}
else{
ListNode* temp=head;
for(i;i>0;i–) temp=temp->next;
p->next=temp->next;
temp->next=p;
}
len++;
return true;
}

}
/*———— 删除第i个元素的值并返回 ————–*/
template
bool List::ListDelete(int i,DataType &e)
{
if(ilen) return false;
else{
ListNode* p=head;
ListNode* temp;
for(i;i>1;i–) p=p->next;
temp=p->next;
e=temp->data;
p->next=p->next->next;
free(temp);
temp=NULL;
len–;
return true;
}
}
#endif

/*—————- 基本测试文件 http://ourys.com原创,做人要厚道,转帖请标明来处 ——- Author:Hector ——-*/

#include
#include “List.h”
using namespace std;
int main()
{
List my;
int i,temp;
for(i=0;i for(i=0;i0;i–)
{
my.ListDelete(i,temp);
cout<