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.