Unable to update in Ubuntu 15.10

11,416

Try sudo -E apt-get update.

For some reason this is required.

Also the software center will not work cause I don't know how to open the software centre with sudo -E enabled...

Share:
11,416

Related videos on Youtube

asbrozek
Author by

asbrozek

Updated on September 18, 2022

Comments

  • asbrozek
    asbrozek over 1 year

    I'm unable to run sudo apt-get update successfully for the past few days now.

    When running sudo apt-get update from terminal, it shows error as,

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/wily/InRelease  Unable to find expected entry 'main/binary-i386cddcd/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/wily-updates/InRelease  Unable to find expected entry 'main/binary-i386cddcd/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/wily-security/InRelease  Unable to find expected entry 'main/binary-i386cddcd/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://archive.canonical.com/ubuntu/dists/wily/InRelease  Unable to find expected entry 'partner/binary-i386cddcd/Packages' in Release file (Wrong sources.list entry or malformed file)
    
    W: Failed to fetch http://archive.canonical.com/dists/wily/InRelease  Unable to find expected entry 'partner/binary-i386cddcd/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.
    

    And when using the Software Updater GUI to update, showing message as,

    Failed to download repository information
    Check your Internet connection
    

    Screenshot of update error

    Seems like some entry/configuration got corrupted. I tried changing the channels in the

    Software & Updates

    by enabling/disabling the restricted,multiverse options in Ubuntu Software tab as well as Canonical Partners option in Other Software tab.

    enter image description here

    Is there any way to reset/cleanup this repository sources list?

    I could've done a re-install of Ubuntu but I'm lazy to reinstall and reconfigure all my softwares and stuff. Thanks in advance.

    • QkiZ
      QkiZ over 8 years
      Is your internet connection is working?
    • asbrozek
      asbrozek over 8 years
      @QkiZ yes i have an active internet connection.
    • asbrozek
      asbrozek over 8 years
      Thanks all for the help and suggestions. I'm unable to do any 'apt-get update' for more than a month now, so I've removed ubuntu and started using windows again. I'll try for a fresh install later. Thanks again.
    • QkiZ
      QkiZ over 8 years
      Did you try ping in.archive.ubuntu.com or browse http://in.archive.ubuntu.com/ubuntu/dists/wily/ in internet browser?
    • asbrozek
      asbrozek over 8 years
      @QkiZ I posted this question from a browser only. How come internet works in browser and not in terminal? And btw, I could see the the 'apt-get update' command working properly, and it fails in the halfway.
    • amc
      amc almost 8 years
      Note that 15.10 reaches its End of Life in July 2016 (wiki.ubuntu.com/Releases) so you will want to upgrade to the latest release
  • asbrozek
    asbrozek over 8 years
    It didn't worked. Still showing same error.
  • asbrozek
    asbrozek over 8 years
    Sorry. both didn't worked.
  • riashatrafat
    riashatrafat over 8 years
    Okay this may help
  • asbrozek
    asbrozek over 8 years
    Thanks for the suggestion. Anyways, I've removed ubuntu now for a fresh installation.