Find the answer to your Linux question:
Results 1 to 6 of 6
Hi guys, its me, Euralis posting... again....; this time I think I have somehow managed to break synaptic. Let me explain what I was doing: Basically I have was trying ...
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    69

    Synaptic Problems



    Hi guys, its me, Euralis posting... again....; this time I think I have somehow managed to break synaptic. Let me explain what I was doing:
    Basically I have was trying to add a new repository, specifically win4lin. Anyway, I went into Synaptic and clicked on settings/repositories/add/custom
    Then I added ftp://ftp.win4lin.com/pub/releases/l...3.0/index.html and that is where it started acting up.
    After I clicked add channel I was greeted by this strange message
    Could not download all repository indexes

    The repository might be no longer available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and the correct writing of the repository address in the preferences.


    Immediatly followed by this one:
    An error occured

    The following details are provided:

    E: Type 'ftp://ftp.win4lin.com/pub/releases/linux/pro/3.0/index.html' is not known on line 5 in source list /etc/apt/sources.list
    E: The list of sources could not be read.
    Go to the repository dialog to correct the problem.
    E: Type 'ftp://ftp.win4lin.com/pub/releases/linux/pro/3.0/index.html' is not known on line 5 in source list /etc/apt/sources.list
    E: Unable to lock the list directory


    now its obvious to me that I input the FTP site wrong, but it gets deeper. So I went into the repositories and tried to find the win4lin ftp site, i could not find it, so I removed all of them: but guess what? The problem did not go away and I still recieve those two messages.

    My message is three fold:
    1.) what did I do wrong in when creating the FTP directory [this is the least important]
    2.) how do i get all my debian repositories back [is there a restore defaults or something???]
    3.) How do I fix synaptic and get rid of that repository directory being that I cannot see it? [This is #1 on the priorities list]

    Thanks guys,
    Your Bothersome Buddy,
    Euralis

    >>>Im going to get some sleep now, and well if you can fix it, I guess I will just reformat.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    Repository links are stored in /etc/apt/sources.list file. Log in as root and delete repositories that are creating problems.
    Or
    Post the contents of /etc/apt/sources.list file here.
    Code:
    cat /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

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    69
    Wow that was quick; only one thing comes up and that is the problem site. One question though, I am not very skilled in the command prompt so you will have to humor me, but what is the command to delete it. And yes, I do know how to log in as root. Thanks for responding so quickly once again.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    Login as root in GUI and open /etc/apt/sources.list in your fav text editor. ( Gedit, kate ).
    Delete ftp.win4lin line(s) from file and save it. Log out and log in as regular user.
    Execute this in Terminal
    Code:
    su -
    apt-get clean all
    apt-get update
    Synaptic will work properly after that.

    Or

    If you want to edit sources.list file in Terminal then open it in nano or vi editor.
    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

  5. #5
    Just Joined!
    Join Date
    Jun 2006
    Posts
    69
    Your Work Wonders. It is as simple as that.

    Thank You
    Euralis

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,308
    Glad to help you Euralis !!!
    Do start a new thread if you have any other question.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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