Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Hello. I know i am asking so many questions, but i am lost. How do you add more text to /etc/apt/sources.list? Because then i add, and tries to save, it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    43

    How do you add text to /etc/apt/sources.list


    Hello. I know i am asking so many questions, but i am lost.
    How do you add more text to /etc/apt/sources.list? Because then i add, and tries to save, it just says that it can't save it.

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    You have to edit it as root.

    if your in the command line you can
    Code:
    su
    [rootpass]
    nano /etc/apt/sources.list
    you can replace nano with your favorite text editor
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    43
    Then i try with KWrite, it says:
    "xlib: connection to ":0.0" refused by server
    xlib: No protocol specified

    kwrite: cannot connect to X server :0.0"

    And it does the same trick with KEdit and Kate.

    Now what should i do?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    You should learn to use command line text editors

    try nano, it's easy to use and you save with Ctrl+O (that's a O not a zero) and exit with Ctrl+X.

    If you don't have nano installed you might want to get it via apt-get
    Code:
    apt-get install nano
    If you can't use apt-get use vi editor. Once you have opened the file press i to enter editing mode. Then once you have edited the file press Esc to get to the command mode and type :w! and then :q.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  6. #5
    Just Joined!
    Join Date
    Aug 2005
    Posts
    43
    http://xoomer.virgilio.it/flavio.sta...org/index.html

    This is what i am trying to do. But i have to add a '~' in the sources.list file too, because there is that symbol in the homepage, but i really don't know how you do that. I can't copy/paste it. So what should i do?

  7. #6
    Just Joined!
    Join Date
    May 2005
    Location
    U.S.A.
    Posts
    20
    I agree you should learn command line editors, a working knowledge can save your tail sometimes. But having said that, it sounds like you're in KDE. If you are and if you click on the K-menu and look at your programs you should find under "system" than under "more applications" file manager in super user mode. It may be in some other place but hopefully that's where it's hiding. It'll ask for your root password when you brig it up and than you'll be working as root and able to edit files. Just don't forget you're root. The other problem, with the command line not wanting to bring up k-write, I've had before and googled and found a working fix but it only happened once and I don't remember what the fix was. I do know a little googling will fix it though.

  8. #7
    Just Joined!
    Join Date
    Aug 2005
    Posts
    43
    I tried writing the exact same thing, as it said i should in that link, but the link aint working through apt-get. What should i do?

  9. #8
    Just Joined!
    Join Date
    Aug 2005
    Posts
    43
    Please help me.

  10. #9
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    CRan you post the error you get as well as your /etc/apt/sources.list please?
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  11. #10
    Just Joined!
    Join Date
    Aug 2005
    Posts
    43
    Oh yes, i forgot that before

    "mig@D40AB641:~$ su
    Password:
    D40AB641:/home/mig# apt-cache search fglrx
    fglrx-control-qt3 - Control panel for the ATI graphics accelerators
    fglrx-driver - Video driver for the ATI graphics accelerators
    fglrx-driver-dev - Video driver for the ATI graphics accelerators (devel files)
    fglrx-kernel-src - Kernel module source for the ATI graphics accelerators
    fglrx-sources - Source code for the ATI graphics accelerators control panel
    D40AB641:/home/mig# apt-get install fglrx-driver
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    fglrx-driver: Depends: xserver-xorg (>= 6.8.0) but it is not installable
    Depends: xserver-xorg (< 6.8.99) but it is not installable
    E: Broken packages
    D40AB641:/home/mig# apt-get install fglrx-control-qt3
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    fglrx-control-qt3: Depends: fglrx-driver but it is not going to be installed
    Depends: libgcc1 (>= 1:4.0.0-9) but 1:3.4.3-13 is to be installed
    Depends: libxinerama1 but it is not installable
    Depends: libxrender1 (> 1:0.9.0-1) but 0.8.3-7 is to be installed
    Depends: libxxf86vm1 but it is not installable
    E: Broken packages
    D40AB641:/home/mig# fglrx-driver-src
    bash: fglrx-driver-src: command not found
    D40AB641:/home/mig# apt-get install fglrx-driver-src
    Reading Package Lists... Done
    Building Dependency Tree... Done
    E: Couldn't find package fglrx-driver-src
    D40AB641:/home/mig# "

    Sources.list:
    "#deb file:///cdrom/ sarge main

    deb ftp://ftp.us.debian.org/debian/ stable main
    deb-src ftp://ftp.us.debian.org/debian/ stable main

    deb ftp://ftp.us.debian.org/debian/ stable main
    deb-src ftp://ftp.us.debian.org/debian/ stable main

    deb http://security.debian.org/ stable/updates main
    deb http://www.stanchina.net/~flavio/debian-fglrx-xorg/ ./"

    Can you see any faults there? I dont know what to do. I found another file, "fglrx-driver_8.14.13-1_i386.deb", and then i extract it, there is three other files: "debian-binary", "data.tar.gz", "control.tar.gz" Now, should i try to install that ATI driver instead? And what should i write in the Konsole to install 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
  •