Error in Line X of "/etc/APT/sources. List" of ubuntu installation source configuration file

Source: Internet
Author: User

This error occurs because the source obtained in the sources. list file is incorrect.

Find the file and open the file. We can comment out the problematic lines in it, or simply replace all the source files.

A 163 source is provided as follows:

Deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
The Deb-Src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
Deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
Deb-Src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
Deb http://mirrors.163.com/ubuntu/ natty-Updates universe main multiverse restricted
Deb http://mirrors.163.com/ubuntu/ natty-Proposed universe main multiverse restricted
The Deb-Src http://mirrors.163.com/ubuntu/ natty-Proposed universe main multiverse restricted
Deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
Deb-Src http://mirrors.163.com/ubuntu/ nat-backports universe main multiverse restricted
Deb-Src http://mirrors.163.com/ubuntu/ Nat-Updates universe main multiverse restricted

Then run$ Sudo apt-Get updateCommand to obtain the source again

To add a source address using the command line, follow these steps:

$ Sudo add-Apt-repository & quot; Deb http://cn.archive.ubuntu.com/ubuntu/jaunty multiverse & quot"

$ Sudo add-Apt-repository & quot; Deb http://cn.archive.ubuntu.com/ubuntu/jaunty-updates multiverse & quot"

$ Sudo apt-Get update

Note that the source address above needs to be modified according to your needs.

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.