Results 1 to 10 of 12
Hi, I'm new to Linux but determined. Any help will be appreciated.
I'm using apt-get install gcc and I am asked to insert my debian dvd in the the cdrom ...
- 09-24-2008 #1
[SOLVED] How to install gcc without cdrom
Hi, I'm new to Linux but determined. Any help will be appreciated.
I'm using apt-get install gcc and I am asked to insert my debian dvd in the the cdrom but it's broken. So How can I install it?
- 09-24-2008 #2Just Joined!
- Join Date
- Jul 2008
- Posts
- 27
do you acces internet?
In menú of gnome there is a program that lets your install programs.
System -> Admin -> Synaptic.
in synaptic there is a Parameters -> Diposits, in tab program of third, unchecked the CDROM, and checked repository of Debian if you cant install from internet.
- 09-24-2008 #3
Does your machine has internet access?
Execute this :
It will download gcc and all other necessary compilers and install it in your machine.Code:su - apt-get update apt-get install build-essential
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-25-2008 #4
Thanks. Yes I have internet access. At first I used Synaptic and didn't find the Parameters, so I switched to Roja's method. Somehow I just excuted apt-get install build-essential and ended up to be ask disk again... I kept press Enter and random letters but I was kept being asked to insert a disk. For now, with what command can get out?
- 09-25-2008 #5Just Joined!
- Join Date
- Sep 2008
- Posts
- 11
You might want to take a look at
Put " # " infront of any repository from a CDCode:/etc/apt/sources.list
An example of a network based repository :
Code:Gibson:/# cat /etc/apt/sources.list # # deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 CD Binary-1 20080803-21:07]/ etch contrib main # deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 CD Binary-1 20080803-21:07]/ etch contrib main deb http://ftp.us.debian.org/debian/ etch main deb-src http://ftp.us.debian.org/debian/ etch main deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contrib
- 09-25-2008 #6
Press Ctrl+C to quit any command.
apt-get should not ask for CD unless you haven't set sources correctly.
Post the contents of /etc/apt/sources.list file here.
Code:cat /etc/apt/sources.list
Edit : artificialsynapse is fast
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-25-2008 #7
Thanks for the help. It's so good to be in a friendly community!
- 09-25-2008 #8
I'm in gnome as a user, and have no permission to change sources.list. I know I can change the file with commands. But how can I go to gnome as root? Simply type root + password doesn't work.
- 09-25-2008 #9
Press Alt+F2 and type this
It will open sources.list file in Gedit with root privileges.Code:gksu gedit /etc/apt/sources.list
Or
Execute this
Edit file and press Ctrl+X, Y and hit Enter key to save file.Code:su - nano /etc/apt/sources.list
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-25-2008 #10
You change your identity with the "su" command (switch user).
If you run su without any arguments, it assumes you want to become root and asks for his password.
EDIT: I will never understand why a post will stay unanswered for several hours and the very minute you post an answer somebody else did too.
Debian GNU/Linux -- You know you want it.



