Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: failed update source.list

  1. #1
    Join Date
    Dec 2012
    Beans
    11

    failed update source.list

    Hi
    I am having some trouble with repositories, which I think it is effecting some installation.
    I am on Ubuntu quantal

    I did apt-get upgrade followed by apt-get update and I got the following errors/warnings:
    Code:
    Fetched 21.9 kB in 3s (6,490 B/s)
    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://ppa.launchpad.net/atareao/atareao/ubuntu/dists/quantal/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://archive.canonical.com/dists/quantal/Release  Unable to find expected entry 'partner/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu/dists/quantal/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://mirror.switch.ch/ftp/mirror/ubuntu/dists/quantal/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://mirror.switch.ch/ftp/mirror/ubuntu/dists/quantal-updates/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://mirror.switch.ch/ftp/mirror/ubuntu/dists/quantal-backports/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://mirror.switch.ch/ftp/mirror/ubuntu/dists/quantal-security/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    my source.list file looks like this
    Code:
    # deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal main restricted
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-updates main restricted
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal universe
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal universe
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-updates universe
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    ## team, and may not be under a free licence. Please satisfy yourself as to 
    ## your rights to use the software. Also, please note that software in 
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal multiverse
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal multiverse
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-updates multiverse
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-backports main restricted universe multiverse
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-backports main restricted universe multiverse
    
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-security main restricted
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-security main restricted
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-security universe
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-security universe
    deb http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-security multiverse
    deb-src http://mirror.switch.ch/ftp/mirror/ubuntu/ quantal-security multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu quantal partner
    # deb-src http://archive.canonical.com/ubuntu quantal partner
    
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    deb http://extras.ubuntu.com/ubuntu quantal main
    deb-src http://extras.ubuntu.com/ubuntu quantal main
    deb http://archive.canonical.com/ quantal partner
    deb-src http://archive.canonical.com/ quantal partner
    I found several previous post about commenting 'indipendent' and other repository but none of the previous solutions I found worked for me.
    Thank you for your help in advance

  2. #2
    Join Date
    Jan 2008
    Location
    Scotland
    Beans
    152
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: failed update source.list

    Just tried an update/upgrade. Get the same problem. Synaptic wont load either with the following errors
    E: Unable to write to /var/cache/apt/
    E: The package lists or status file could not be parsed or opened.
    E: _cache->open() failed, please report.

    W: Not using locking for read only lock file /var/lib/dpkg/lock

    Any ideas?

  3. #3
    Join Date
    Dec 2012
    Beans
    9

    Re: failed update source.list

    Hi

    nutricola try to change the mirror please. Can you open the update manager ? If yes , goto "settings" and then at first tab , change the "Download From" to the "main" server.

    awam66
    I think this is not exactly the same problem as @nutricola has..

    Please open a terminal (CTRL+ALT+T) and apply the commands below
    Code:
    sudo rm /var/lib/apt/lists/* -vf
    sudo mkdir /var/lib/apt/lists/partial
    sudo apt-get autoclean & sudo apt-get clean all
    sudo apt-get update
    and see if problem solved.

    Thank you
    Last edited by Temporarily; December 22nd, 2012 at 02:58 PM.

  4. #4
    Join Date
    Dec 2012
    Beans
    11

    Re: failed update source.list

    Unfortunately it is not opening. It starts scanning something and then it is giving me the same error I posted from apt-get.
    I changed anyway the settings from Ubuntusoftwarecenter, and this gave no improvements.
    The only different thing I see is that if I run apt-get update from terminal now befoe the error there are some numbers coming from some 'hits' , I guess it is finding some updates from the main server which were not detected before

  5. #5
    Join Date
    Jan 2008
    Location
    Scotland
    Beans
    152
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: failed update source.list

    Quote Originally Posted by Temporarily View Post
    Hi

    nutricola try to change the mirror please. Can you open the update manager ? If yes , goto "settings" and then at first tab , change the "Download From" to the "main" server.

    awam66
    I think this is not exactly the same problem as @nutricola has..

    Please open a terminal (CTRL+ALT+T) and apply the commands below
    Code:
    sudo rm /var/lib/apt/lists/* -vf
    sudo mkdir /var/lib/apt/lists/partial
    sudo apt-get autoclean & sudo apt-get clean all
    sudo apt-get update
    and see if problem solved.

    Thank you
    Thanks for the above,
    I booted to recovery mode and did Fix Broken Pakages. This came up with an fsck error asked to [ress F to fix it. Pressed F and all is now well!

  6. #6
    Join Date
    Dec 2012
    Beans
    9

    Re: failed update source.list

    Glad you solved it awam66


    nutricola please try the commands below

    Code:
    sudo cp /etc/apt/sources.list ~/sources.list.old 
    sudo wget "http://pastebin.com/raw.php?i=arCPb5ui" -O /etc/apt/sources.list
    sudo apt-get update
    and tell me if now works.

    Thanks

  7. #7
    Join Date
    Dec 2012
    Beans
    11

    Re: failed update source.list

    the same error but this time from US
    Code:
    W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-security/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://archive.canonical.com/ubuntu/dists/quantal/Release  Unable to find expected entry 'partner/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    E: Some index files failed to download. They have been ignored, or old ones used instead.

    I don't know if it s related but some time ago, I got some strange warning about -fix-architecture, I am not able to reproduce that error now
    Last edited by nutricola; December 22nd, 2012 at 03:39 PM.

  8. #8
    Join Date
    Dec 2012
    Beans
    11

    Re: failed update source.list

    HI
    now I also have done
    Code:
     sudo rm /var/lib/apt/lists/* -vf 
    sudo rm -rf /etc/apt/sources.list.d
    and I only have this in the source.list

    Code:
    deb http://archive.ubuntu.com/ubuntu quantal main
    I seriously don4t understand what4s wrong

  9. #9
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: failed update source.list

    @nutricola

    The command rm = remove. This is the same as 'delete.' You have just deleted all the scripts in the lists folder. These scripts are a record of the packages on your system and the date they were installed. By comparing what we have on our systems with what is available in the repositories/software sources Update Manager knows what needs updating.

    You now need to re-create those scripts. run this command:

    Code:
    sudo apt-get update
    That will rebuild the scripts in the lists folder. What did you do wrong? I do not know but this might be a typing error or it may give us a clue.

    I did apt-get upgrade followed by apt-get update and I got the following errors/warnings:
    It is usual to 'update' before 'upgrade.' Update compares the scripts in the lists folder with what is in the repositories. Upgrade downloads and installs any packages that have been updated in the repositories. OK. I agree. It is confusing. That is why in Quantal 12.10 it is made easy by going to the Details page in System Settings or About This Computer.

    regards.
    Last edited by grahammechanical; December 23rd, 2012 at 03:37 PM.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  10. #10
    Join Date
    Dec 2012
    Beans
    11

    Re: failed update source.list

    Thank you for your reply.
    I have probably been unclear.
    I know what rm is doing. I was hoping to clear up some mess.
    I did both combinations of the command (before and after deleting the files):
    first 'sudo apt-get update' and then 'sudo apt-get upgrade' (and the other way around).
    And I am still getting the same message even if I have just one line uncommented in the file source.list.

    I confirm that right now even if I have only one repository activated (either from the US server, from the Swiss server or from "Main"):
    e.g.
    Code:
    deb http://archive.ubuntu.com/ubuntu quantal main
    I got the message
    Code:
    Ign http://archive.ubuntu.com quantal InRelease
    Hit http://archive.ubuntu.com quantal Release.gpg
    Hit http://archive.ubuntu.com quantal Release
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/Release  Unable to find expected entry 'main/binary-386/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    Last edited by nutricola; December 23rd, 2012 at 04:41 PM.

Page 1 of 2 12 LastLast

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
  •