add-apt-repository 用不了,怎么办??

为当前最终发行版之前的所有版本提供支持
回复
头像
林骏风
帖子: 4
注册时间: 2010-06-09 15:01
送出感谢: 0
接收感谢: 0

add-apt-repository 用不了,怎么办??

#1

帖子 林骏风 » 2011-01-07 17:04

我用的是ubuntu8.04, 在使用add-apt-repository命令时发现不能用. python-software-properties 这个软件已经安装了. 可是,还是用不了.....怎么办!!!!

求救...... :em06
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid
送出感谢: 1 次
接收感谢: 23 次

Re: add-apt-repository 用不了,怎么办??

#2

帖子 leeaman » 2011-01-07 17:06

8.04似乎还没有这个命令吧,是apt-add才对
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
林骏风
帖子: 4
注册时间: 2010-06-09 15:01
送出感谢: 0
接收感谢: 0

Re: add-apt-repository 用不了,怎么办??

#3

帖子 林骏风 » 2011-01-07 17:20

可是 wine (wiki)那边介绍的命令就是add-apt-repository 啊!!!
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid
送出感谢: 1 次
接收感谢: 23 次

Re: add-apt-repository 用不了,怎么办??

#4

帖子 leeaman » 2011-01-07 17:29

On older (pre 9.10) Ubuntu systems

Step 1: Visit the PPA's overview page in Launchpad. Look for the heading that reads Adding this PPA to your system and click the Technical details about this PPA link.

Step 2: Use the Display sources.list entries drop-down box to select the version of Ubuntu you're using.

Step 3: You'll see that the text-box directly below reads something like this:

deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu lucid main

Copy those lines.

Step 4: Open a terminal and type:

sudo gedit /etc/apt/sources.list

This will open a text editor containing the list of archives that your system is currently using. Scroll to the bottom of the file and paste the lines you copied in the step above.

Save the file and exit the text editor.

Step 5: Back on the PPA's overview page, look for the Signing key heading. You'll see something like:

1024R/72D340A3 (What is this?)

Copy the portion after the slash but not including the help link; e.g. just 72D340A3.

Step 6: Now you need to add that key to your system so Ubuntu can verify the packages from the PPA. In your terminal, enter:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 72D340A3

Replace 72D340A3 with whatever you copied in the step 5.

This will now pull down the PPA's key and add it to your system.

Step 7: Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added:

sudo apt-get update

Now you're ready to start installing software from the PPA!
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
heavencen
帖子: 132
注册时间: 2011-02-04 14:08
送出感谢: 4 次
接收感谢: 0

Re: add-apt-repository 用不了,怎么办??

#5

帖子 heavencen » 2011-03-06 19:26

楼上正解!
回复

回到 “老旧版本支持”