Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Problem with Updating ubuntu 12.10

  1. #11
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Problem with Updating ubuntu 12.10

    Do you have an application called Software & Updates or Software Sources in the Dash?

    Cannot remember what 12.10 used.

    If so,try to open one of them.

    If Software Sources opens,you can change the server there.

    Or

    You could from a terminal
    Code:
    sudo rm -rf /var/lib/apt/lists/*
    
    sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
    The second command renames the file sources.list to sources.list.old

    and then go Here and recreate another sources.list that uses the main repository and copy it into the /etc/apt/ directory.

    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  2. #12
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: Problem with Updating ubuntu 12.10

    Code:
    cp /etc/apt/sources.list /etc/apt/sources.old
    sed -i -e 's|\(http[s]*://\)[a-z]*.\(.*\.ubuntu\.com\)|\1\2|' /etc/apt/sources.list
    sudo apt-get update

  3. #13
    Join Date
    Oct 2012
    Location
    Chicago, Illinois
    Beans
    125

    Re: Problem with Updating ubuntu 12.10

    Dear My Friends
    Hi

    Practically, I got familiar with the tasks that I should do to get rid of this ridiculous problem.
    At the moment, I am at this step:
    PHP Code:
    recreate another sources.list that uses the main repository and copy it into the /etc/aptdirectory
    I have recreated another sources.list from the ubuntu sources list generator site , But How can I copy it into /etc/apt directory? My problem is now with the following line in the site:
    PHP Code:
    Replace your /etc/apt/sources.list with the following one 
    I tried to open the sources.list.old file and copy the items from the site in it. How ever, I confronted this error:

    PHP Code:
    There is no application installed for backup file files 
    Many Thnks for your earlier kind helps and would you plz help me now?

    @THilmTye
    Thanks for ur codes buddy, when I tried the first command I got this error:

    Code:
    babak@babak-System:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
    [sudo] password for babak: 
    cp: cannot stat `/etc/apt/sources.list': No such file or directory

    Regards
    Bobi
    Last edited by babakflame; June 14th, 2013 at 08:17 AM.

  4. #14
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Problem with Updating ubuntu 12.10

    But How can I copy it into /etc/apt directory?
    Edit the file with
    Code:
    gksudo gedit /etc/apt/sources.list
    and then copy and paste the output from the source list generator into the file.Then save it.

    You should now be able to run
    Code:
    sudo apt-get update
    and see if you still get the error.

    Also you might have to run the rm command to delete the broken .list file if you haven't done so before.

    I tried to open the sources.list.old file and copy the items from the site in it.
    The sources.list.old file is just a backup incase you are unable to recreate a new sources.list file.

    You have to now create a new sources.list file

    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  5. #15
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: Problem with Updating ubuntu 12.10

    Quote Originally Posted by babakflame View Post
    @THilmTye
    Thanks for ur codes buddy, when I tried the first command I got this error:

    Code:
    babak@babak-System:~$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
    [sudo] password for babak: 
    cp: cannot stat `/etc/apt/sources.list': No such file or directory
    that's because you moved it to /etc/apt/sources.list.old

    instead run
    Code:
    sudo cp /etc/apt/sources.list.old /etc/apt/sources.list
    sudo sed -i -e 's|\(http[s]*://\)[a-z]*.\(.*\.ubuntu\.com\)|\1\2|' /etc/apt/sources.list
    sudo apt-get update

  6. #16
    Join Date
    Oct 2012
    Location
    Chicago, Illinois
    Beans
    125

    Re: Problem with Updating ubuntu 12.10

    Dear Buddies
    Many thanks for your kind helps. It seems that the problem is solved.

    Regards
    Bobi

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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