Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just Joined! NeoPjcpp's Avatar
    Join Date
    May 2008
    Posts
    51

    [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?

  2. #2
    Just 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.


  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Does your machine has internet access?
    Execute this :
    Code:
    su -
    apt-get update
    apt-get install build-essential
    It will download gcc and all other necessary compilers and install it in your machine.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined! NeoPjcpp's Avatar
    Join Date
    May 2008
    Posts
    51
    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?

  5. #5
    Just Joined!
    Join Date
    Sep 2008
    Posts
    11
    You might want to take a look at
    Code:
    /etc/apt/sources.list
    Put " # " infront of any repository from a CD

    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

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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

  7. #7
    Just Joined! NeoPjcpp's Avatar
    Join Date
    May 2008
    Posts
    51
    Thanks for the help. It's so good to be in a friendly community!

  8. #8
    Just Joined! NeoPjcpp's Avatar
    Join Date
    May 2008
    Posts
    51
    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.

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    It will open sources.list file in Gedit with root privileges.
    Or
    Execute this
    Code:
    su -
    nano /etc/apt/sources.list
    Edit file and press Ctrl+X, Y and hit Enter key to save file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    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.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •