Linux cannot be connected to the internet. windows can use apt when connected to the Internet.

Source: Internet
Author: User
Article title: linux cannot be connected to the Internet, and windows can use apt when connected. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Usually, windows can be connected to the internet but ubuntu cannot be connected to the Internet on the same machine. However, this is common in campus networks with Chinese characteristics. although there are local solutions, the advantages of apt cannot be reflected in the need for a networked linux and a huge hard disk space (and fast network speed.

The following describes a relatively roundabout method:

First, download the package information from the source. for the download list, see the attachment. here we use the cn99 source and gutsy as an example (I haven't read the source manual yet, so I just downloaded the gutsy-related items outside the pool folder. for other cases, please compare them yourself ).
Note that you need to use the download software that can reconstruct the directory structure to download, just like the-x option of wget.

Code:

Wget-B-I cn99_gutsy.lst-w 2-x

Be honest, please use a single thread + latency for downloading, and use your own ip address

After the download, it looks like this

Code:

Autumncat @ autumncat-host :~ /Apt-source/ubuntu.cn99.com
$ Find
.
./Ubuntu
./Ubuntu/dists
./Ubuntu/dists/gutsy
./Ubuntu/dists/gutsy/Contents-amd64.gz
./Ubuntu/dists/gutsy/Contents-i386.gz
./Ubuntu/dists/gutsy/Release
./Ubuntu/dists/gutsy/Release. gpg
./Ubuntu/dists/gutsy/main
./Ubuntu/dists/gutsy/main/binary-amd64
./Ubuntu/dists/gutsy/main/binary-amd64/Packages.bz2
./Ubuntu/dists/gutsy/main/binary-amd64/Packages.gz
./Ubuntu/dists/gutsy/main/binary-amd64/Release
./Ubuntu/dists/gutsy/main/binary-i386
./Ubuntu/dists/gutsy/main/binary-i386/Packages.bz2
./Ubuntu/dists/gutsy/main/binary-i386/Packages.gz
./Ubuntu/dists/gutsy/main/binary-i386/Release
./Ubuntu/dists/gutsy/main/debian-installer
./Ubuntu/dists/gutsy/main/debian-installer/binary-amd64
./Ubuntu/dists/gutsy/main/debian-installer/binary-amd64/Packages.bz2
....

[1] [2] Next page

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.