Ubuntu old version Stop update source invalid-workaround

Source: Internet
Author: User

My Ubuntu version is 12.10, I am only a rookie, recently want to practice under the Linux C + + program, students recommend the use of VIM and g++ compiled. (Look at the company's recruitment requirements, found that learning Linux and C + + is really important, now bad fill)

So the problem is, my Ubuntu even vim is not, with sudo apt-get install vim installation is always unable to download the package, and then what the unverified source, install what software is not installed. So think of the source, search on the internet a lot of tutorials, some Linux blog many, according to their methods to do is still useless. Then inadvertently see what Ubuntu old version stop updating, as if 13.04 have stopped, the source is invalid. I also want to upgrade to the latest version, online upgrade ... Even the software can not be installed to upgrade it. Unloading loads is too much trouble.

Luckily, I saw another blog on the Internet: http://blog.csdn.net/lizhenmingdirk/article/details/42916483

I'll write down my installation process.

1, first backup Ubuntu source list

sudo cp/etc/apt/sources.list/etc/apt/sources.list.old 2, modify /etc/apt/sources.list:

$sudo gedit /etc/apt/sources.list to copy the address.

Deb Http://old-releases.ubuntu.com/ubuntu quantal main restricted universe multiverse
Deb Http://old-releases.ubuntu.com/ubuntu quantal-security main restricted universe multiverse
Deb Http://old-releases.ubuntu.com/ubuntu quantal-updates main restricted universe multiverse
Deb Http://old-releases.ubuntu.com/ubuntu quantal-proposed main restricted universe multiverse
Deb Http://old-releases.ubuntu.com/ubuntu quantal-backports main restricted universe multiverse
DEB-SRC http://old-releases.ubuntu.com/ubuntu quantal main restricted universe multiverse
DEB-SRC http://old-releases.ubuntu.com/ubuntu quantal-security main restricted universe multiverse
DEB-SRC http://old-releases.ubuntu.com/ubuntu quantal-updates main restricted universe multiverse
DEB-SRC http://old-releases.ubuntu.com/ubuntu quantal-proposed main restricted universe multiverse
DEB-SRC http://old-releases.ubuntu.com/ubuntu quantal-backports main restricted universe multiverse


Each line has a quantal, this is the Ubuntu12.10 code, each Linux version has a code name, interested to read: http://www.cnbeta.com/articles/184259.htm

Here's a quick look.

Ubuntu 4.10-warty Warthog
Ubuntu 5.04-hoary Hedgehog
Ubuntu 5.10-breezy Badger
Ubuntu 6.06-dapper Drake
Ubuntu 6.10-edgy Eft
Ubuntu 7.04-feisty Fawn
Ubuntu 7.10-gutsy Gibbon
Ubuntu 8.04-hardy Heron
Ubuntu 8.10-intrepid Ibex
Ubuntu 9.04-jaunty Jackalope
Ubuntu 9.10-karmic Koala
Ubuntu 10.04-lucid Lynx
Ubuntu 10.10-maverick Meerkat
Ubuntu 11.04-natty Narwhal
Ubuntu 11.10-oneiric Ocelot
Ubuntu 12.04-precise Pangolin
Ubuntu 12.10-quantal Quetzal
Ubuntu 13.04-raring Ringtail

Other versions will be quantal replaced by their own version of the code can be, note that the first word, all lowercase. such as Ubuntu13.04 is raring.

3. Run sudo apt-get update

Then install VIM and g++ successfully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.