Debian uses the ISO image as the local source

Source: Internet
Author: User

I installed Debian5.0 and found that the gcc package was not installed. The bitter thing was that I only used wireless networks at ordinary times. After a long time, I still couldn't connect to the package. desperate, I ran into tears. It's strange that I uninstalled the python2.7 of Ubuntu 11.04 that I have been using for a long time yesterday, which directly caused the login to the system to fail. Alas, next time the system is original, do not uninstall it...

No way. You can only find another method. It is a good idea to use the ISO image as the local source. However, it seems that google does not work for me. In the end, the solution is fixed. record it.

Copy the iso image to the USB flash drive. Switch to the root user and run fdisk-l to check the partition of the USB flash drive, for example,/dev/sdb4 (if you only have one hard disk, that must be sdb, and so on ).

Mount a USB flash drive:

Mount/dev/sdb4/mnt
Iso under the rule/mnt directory:
Mount-t iso9660-o loop/mnt/debian-5010-i386-CD-1.iso/cdrom/
Note that you need to mount the file to the/cdrom directory, because the following command is used.

Clear or save/etc/apt/sources. list

Add the cdrom apt Source:

Apt-cdrom-m-d/cdrom/add
OK, update it:
Apt-get update
You can install the software, such as the gcc package:
Apt-get install build-essential
If Media Change: Please insert the disc labeled appears, it means that your directory has a problem and you have to think about it yourself.

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.