[SOLVED]Issue with updating packages and sources.list file

If none of the more specific forums is the right place to ask

[SOLVED]Issue with updating packages and sources.list file

Postby eriksatie » 2015-07-27 01:00

Hello, all--

I've been having some issues for some time with running "apt-get update". I frequently get "Failed to fetch" errors for some packages. Here is an example of my most recent apt-get update attempt.

Code: Select all
Ign http://dl.google.com stable InRelease
Ign http://ftp.us.debian.org wheezy InRelease                                                 
Ign http://security.debian.org wheezy/updates InRelease                                       
Get:1 http://dl.google.com stable Release.gpg [198 B]                                         
Ign http://security.debian.org wheezy/updates Release.gpg                                     
Get:2 http://ftp.us.debian.org wheezy-updates InRelease [132 kB]                               
Ign http://ppa.launchpad.net jessie InRelease                                                 
Get:3 http://dl.google.com stable Release [1,347 B]                                           
Ign http://security.debian.org wheezy/updates Release                                         
Get:4 http://dl.google.com stable/main i386 Packages [1,183 B]                                 
Ign http://ppa.launchpad.net jessie InRelease                                                 
Ign http://download.opensuse.org ./ InRelease                                                 
Ign http://ppa.launchpad.net trusty InRelease                                                 
Hit http://download.opensuse.org ./ Release.gpg                                               
Ign http://ppa.launchpad.net jessie Release.gpg                                               
Hit http://ftp.us.debian.org jessie InRelease                                                 
Hit http://download.opensuse.org ./ Release                                                   
Get:5 https://people.debian.org xbmc-ffmpeg-unstable/ InRelease [321 B]                       
Ign https://people.debian.org xbmc-ffmpeg-unstable/ InRelease                                 
Get:6 http://ftp.us.debian.org sid InRelease [210 kB]                                         
Ign http://ppa.launchpad.net jessie Release.gpg                                               
Get:7 https://people.debian.org xbmc-ffmpeg-unstable/ Release.gpg [543 B]                     
Get:8 http://http.debian.net wheezy-backports InRelease [148 kB]                               
Get:9 http://ppa.launchpad.net trusty Release.gpg [316 B]                                     
Hit https://people.debian.org xbmc-ffmpeg-unstable/ Release                                   
Ign https://people.debian.org xbmc-ffmpeg-unstable/ Release                                   
Get:10 http://http.debian.net unstable InRelease [210 kB]                                     
Ign http://ppa.launchpad.net jessie Release                                                   
Get:11 https://people.debian.org xbmc-ffmpeg-unstable/ Packages/DiffIndex [331 B]             
Ign https://people.debian.org xbmc-ffmpeg-unstable/ Packages/DiffIndex                         
Hit http://ftp.us.debian.org wheezy Release.gpg                                               
Ign http://ppa.launchpad.net jessie Release                                                   
Get:12 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en_US [321 B]               
Ign http://dl.google.com stable/main Translation-en_US                                         
Get:13 http://ftp.us.debian.org wheezy-updates/main Sources [3,855 B]                         
Hit http://download.opensuse.org ./ Packages                                                   
Get:14 http://ppa.launchpad.net trusty Release [15.1 kB]                                       
Get:15 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en [318 B]                 
Ign http://dl.google.com stable/main Translation-en                                           
Get:16 http://ftp.us.debian.org wheezy-updates/contrib Sources [14 B]                         
Get:17 http://ftp.us.debian.org wheezy-updates/non-free Sources [14 B]                         
Get:18 https://people.debian.org xbmc-ffmpeg-unstable/ Packages                               
Get:19 http://ftp.us.debian.org wheezy-updates/main i386 Packages/DiffIndex [3,265 B]         
Get:20 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en_US [321 B]               
Get:21 http://ftp.us.debian.org wheezy-updates/contrib i386 Packages [14 B]                   
Get:22 http://ftp.us.debian.org wheezy-updates/non-free i386 Packages [14 B]                   
Get:23 http://ftp.us.debian.org wheezy-updates/contrib Translation-en [14 B]                   
Get:24 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en [318 B]                 
Get:25 http://ftp.us.debian.org wheezy-updates/main Translation-en/DiffIndex [2,023 B]         
Get:26 http://http.debian.net wheezy-backports/main i386 Packages/DiffIndex [7,819 B]         
Get:27 http://ftp.us.debian.org wheezy-updates/non-free Translation-en [14 B]                 
Hit https://people.debian.org xbmc-ffmpeg-unstable/ Packages                                   
Get:28 http://http.debian.net wheezy-backports/main Translation-en/DiffIndex [7,819 B]         
Get:29 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en_US [321 B]               
Get:30 http://http.debian.net unstable/main i386 Packages/DiffIndex [7,876 B]                 
Get:31 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en [318 B]                 
Get:32 http://http.debian.net unstable/main Translation-en/DiffIndex [7,876 B]                 
Get:33 http://ftp.us.debian.org sid/main i386 Packages/DiffIndex [7,876 B]                     
Get:34 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en_US [321 B]               
Get:35 http://ppa.launchpad.net trusty/main Sources [568 B]                                   
Get:36 http://http.debian.net wheezy-backports/main i386 2015-06-22-1436.25.pdiff [328 B]     
Get:37 http://ftp.us.debian.org sid/contrib i386 Packages/DiffIndex [7,819 B]                 
Get:38 http://ftp.us.debian.org sid/non-free i386 Packages/DiffIndex [7,819 B]                 
Get:39 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en [318 B]                 
Ign http://download.opensuse.org ./ Translation-en_US                                         
Get:40 http://ppa.launchpad.net trusty/main i386 Packages [439 B]                             
Get:41 http://ftp.us.debian.org sid/contrib Translation-en/DiffIndex [7,819 B]                 
Get:42 http://ppa.launchpad.net trusty/main Translation-en [264 B]                             
Get:43 http://http.debian.net wheezy-backports/main i386 2015-06-22-2038.00.pdiff [391 B]     
Get:44 http://ftp.us.debian.org sid/main Translation-en/DiffIndex [7,876 B]                   
Get:45 http://ftp.us.debian.org sid/non-free Translation-en/DiffIndex [7,819 B]               
Get:46 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en_US [321 B]               
Ign https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en_US                         
Ign http://download.opensuse.org ./ Translation-en                                             
Hit http://ftp.us.debian.org wheezy Release                                                   
Get:47 http://http.debian.net wheezy-backports/main i386 2015-07-01-2039.58.pdiff [31 B]       
Hit http://ftp.us.debian.org jessie/main i386 Packages                                         
Get:48 http://http.debian.net wheezy-backports/main i386 2015-06-30-1442.21.pdiff [2,108 B]   
Get:49 https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en [318 B]                 
Hit http://ftp.us.debian.org jessie/contrib i386 Packages                                     
Ign https://people.debian.org xbmc-ffmpeg-unstable/ Translation-en                             
Get:50 http://http.debian.net wheezy-backports/main i386 2015-07-06-2045.28.pdiff [613 B]     
Hit http://ftp.us.debian.org jessie/non-free i386 Packages                                     
Hit http://ftp.us.debian.org jessie/contrib Translation-en                                     
Hit http://ftp.us.debian.org jessie/main Translation-en                                 
Get:51 http://http.debian.net wheezy-backports/main i386 2015-07-08-0248.35.pdiff [3,477 B]   
Hit http://ftp.us.debian.org jessie/non-free Translation-en                                   
Get:52 http://ftp.us.debian.org sid/contrib i386 2015-06-19-1436.25.pdiff [252 B]             
Get:53 http://http.debian.net wheezy-backports/main i386 2015-07-16-2047.23.pdiff [642 B]     
Get:54 http://http.debian.net wheezy-backports/main i386 2015-07-16-2047.23.pdiff [642 B]     
Get:55 http://ftp.us.debian.org sid/contrib i386 2015-06-21-2035.20.pdiff [415 B]             
Get:56 http://ftp.us.debian.org sid/contrib i386 2015-06-22-0236.38.pdiff [361 B]             
Get:57 http://http.debian.net wheezy-backports/main 2015-06-22-1436.25.pdiff [103 B]           
Get:58 http://ftp.us.debian.org sid/contrib i386 2015-06-24-0239.36.pdiff [493 B]             
Err http://security.debian.org wheezy/updates/main Sources                                     
  404  Not Found [IP: 128.61.240.73 80]
Get:59 http://ftp.us.debian.org sid/contrib i386 2015-06-24-1440.36.pdiff [1,603 B]           
Err http://security.debian.org wheezy/updates/contrib Sources                                 
  404  Not Found [IP: 128.61.240.73 80]
Get:60 http://http.debian.net wheezy-backports/main 2015-06-30-1442.21.pdiff [956 B]           
Get:61 http://ftp.us.debian.org sid/contrib i386 2015-06-24-2041.54.pdiff [928 B]             
Err http://security.debian.org wheezy/updates/non-free Sources                                 
  404  Not Found [IP: 128.61.240.73 80]
Err http://security.debian.org wheezy/updates/main i386 Packages                               
  404  Not Found [IP: 128.61.240.73 80]
Err http://security.debian.org wheezy/updates/contrib i386 Packages                           
  404  Not Found [IP: 128.61.240.73 80]
Get:62 http://ftp.us.debian.org sid/contrib i386 2015-06-27-2039.59.pdiff [233 B]             
Err http://security.debian.org wheezy/updates/non-free i386 Packages                           
  404  Not Found [IP: 128.61.240.73 80]
Get:63 http://http.debian.net wheezy-backports/main 2015-07-01-2039.58.pdiff [31 B]           
Get:64 http://ftp.us.debian.org sid/contrib i386 2015-07-08-0846.25.pdiff [481 B]             
Ign http://security.debian.org wheezy/updates/contrib Translation-en_US                       
Get:65 http://ftp.us.debian.org sid/contrib i386 2015-07-08-1448.02.pdiff [29 B]               
Ign http://security.debian.org wheezy/updates/contrib Translation-en                           
Ign http://security.debian.org wheezy/updates/main Translation-en_US                           
Get:66 http://http.debian.net wheezy-backports/main 2015-07-16-2047.23.pdiff [417 B]           
Get:67 http://ftp.us.debian.org sid/contrib i386 2015-07-10-0245.27.pdiff [990 B]             
Ign http://security.debian.org wheezy/updates/main Translation-en                             
Get:68 http://ftp.us.debian.org sid/contrib i386 2015-07-10-1444.40.pdiff [637 B]             
Ign http://security.debian.org wheezy/updates/non-free Translation-en_US                       
Get:69 http://ftp.us.debian.org sid/contrib i386 2015-07-15-1448.53.pdiff [1,994 B]           
Ign http://security.debian.org wheezy/updates/non-free Translation-en                         
Get:70 http://http.debian.net wheezy-backports/main 2015-07-23-1448.36.pdiff [4,092 B]         
Get:71 http://ftp.us.debian.org sid/contrib i386 2015-07-19-2048.44.pdiff [624 B]             
Get:72 http://http.debian.net wheezy-backports/main 2015-07-23-1448.36.pdiff [4,092 B]         
Get:73 http://ftp.us.debian.org sid/contrib i386 2015-07-20-1448.42.pdiff [1,611 B]           
Get:74 http://ftp.us.debian.org sid/contrib i386 2015-07-20-2047.52.pdiff [869 B]             
Get:75 http://ftp.us.debian.org sid/contrib i386 2015-07-21-0250.43.pdiff [1,239 B]           
Get:76 http://ftp.us.debian.org sid/contrib i386 2015-07-21-0850.03.pdiff [38 B]               
Get:77 http://http.debian.net unstable/main Translation-en [5,042 kB]                         
Get:78 http://ftp.us.debian.org sid/contrib i386 2015-07-21-1449.47.pdiff [517 B]             
Get:79 http://ftp.us.debian.org sid/contrib i386 2015-07-21-2049.10.pdiff [29 B]               
Get:80 http://ftp.us.debian.org sid/contrib i386 2015-07-22-1449.38.pdiff [388 B]             
Get:81 http://ftp.us.debian.org sid/contrib i386 2015-07-22-2049.44.pdiff [29 B]               
Get:82 http://ftp.us.debian.org sid/contrib i386 2015-07-26-0850.47.pdiff [433 B]             
Get:83 http://ftp.us.debian.org sid/contrib i386 2015-07-26-0850.47.pdiff [433 B]             
Get:84 http://ftp.us.debian.org sid/non-free i386 2015-06-22-0236.38.pdiff [695 B]             
Get:85 http://ftp.us.debian.org sid/non-free i386 2015-06-23-0836.36.pdiff [31 B]             
Get:86 http://ftp.us.debian.org sid/non-free i386 2015-06-24-0239.36.pdiff [431 B]             
Get:87 http://ftp.us.debian.org sid/non-free i386 2015-06-25-2041.30.pdiff [728 B]             
Get:88 http://ftp.us.debian.org sid/non-free i386 2015-06-26-2040.59.pdiff [248 B]             
Get:89 http://ftp.us.debian.org sid/non-free i386 2015-06-27-1442.44.pdiff [507 B]             
Get:90 http://ftp.us.debian.org sid/non-free i386 2015-07-01-0842.17.pdiff [234 B]             
Err http://ppa.launchpad.net jessie/main i386 Packages                                         
  404  Not Found
Get:91 http://ftp.us.debian.org sid/non-free i386 2015-07-02-1442.16.pdiff [258 B]             
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                     
Get:92 http://ftp.us.debian.org sid/non-free i386 2015-07-06-2045.28.pdiff [363 B]             
Get:93 http://ftp.us.debian.org sid/non-free i386 2015-07-08-0248.35.pdiff [2,292 B]           
Ign http://ppa.launchpad.net jessie/main Translation-en                                       
Err http://ppa.launchpad.net jessie/main i386 Packages                                         
  404  Not Found
Get:94 http://ftp.us.debian.org sid/non-free i386 2015-07-08-2049.11.pdiff [307 B]         
Get:95 http://ftp.us.debian.org sid/non-free i386 2015-07-10-0245.27.pdiff [2,539 B]           
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                     
Get:96 http://ftp.us.debian.org sid/non-free i386 2015-07-14-0248.52.pdiff [42 B]
Ign http://ppa.launchpad.net jessie/main Translation-en                                       
Get:97 http://ftp.us.debian.org sid/non-free i386 2015-07-15-2047.08.pdiff [332 B]             
Get:98 http://ftp.us.debian.org sid/non-free i386 2015-07-18-0246.16.pdiff [244 B]             
Get:99 http://ftp.us.debian.org sid/non-free i386 2015-07-23-0247.58.pdiff [455 B]             
Get:100 http://ftp.us.debian.org sid/non-free i386 2015-07-23-0910.58.pdiff [1,042 B]         
Get:101 http://ftp.us.debian.org sid/non-free i386 2015-07-23-1448.36.pdiff [427 B]           
Get:102 http://ftp.us.debian.org sid/non-free i386 2015-07-24-0250.04.pdiff [467 B]           
Get:103 http://ftp.us.debian.org sid/non-free i386 2015-07-24-0250.04.pdiff [467 B]           
Get:104 http://ftp.us.debian.org sid/contrib 2015-06-24-0239.36.pdiff [328 B]                 
Get:105 http://ftp.us.debian.org sid/contrib 2015-06-24-1440.36.pdiff [470 B]                 
Get:106 http://ftp.us.debian.org sid/contrib 2015-06-24-2041.54.pdiff [883 B]                 
Get:107 http://ftp.us.debian.org sid/contrib 2015-06-25-0241.48.pdiff [29 B]                   
Get:108 http://ftp.us.debian.org sid/contrib 2015-06-25-0844.51.pdiff [29 B]                   
Get:109 http://ftp.us.debian.org sid/contrib 2015-07-15-1448.53.pdiff [556 B]                 
Get:110 http://ftp.us.debian.org sid/contrib 2015-07-20-1448.42.pdiff [663 B]                 
Get:111 http://ftp.us.debian.org sid/contrib 2015-07-20-1448.42.pdiff [663 B]                 
Get:112 http://ftp.us.debian.org sid/main Translation-en [5,042 kB]                           
Get:113 http://http.debian.net unstable/main i386 Packages [7,474 kB]                         
Get:114 http://ftp.us.debian.org sid/non-free 2015-06-22-0236.38.pdiff [221 B]                 
Get:115 http://ftp.us.debian.org sid/non-free 2015-06-23-0836.36.pdiff [31 B]                 
Get:116 http://ftp.us.debian.org sid/non-free 2015-06-24-0239.36.pdiff [513 B]                 
Get:117 http://ftp.us.debian.org sid/non-free 2015-06-25-2041.30.pdiff [572 B]                 
Get:118 http://ftp.us.debian.org sid/non-free 2015-07-09-2046.24.pdiff [1,905 B]               
Get:119 http://ftp.us.debian.org sid/non-free 2015-07-10-0245.27.pdiff [67 B]                 
Get:120 http://ftp.us.debian.org sid/non-free 2015-07-14-0248.52.pdiff [42 B]                 
Get:121 http://ftp.us.debian.org sid/non-free 2015-07-23-1448.36.pdiff [493 B]                 
Get:122 http://ftp.us.debian.org sid/non-free 2015-07-23-1448.36.pdiff [493 B]                 
Get:123 http://ftp.us.debian.org sid/main i386 Packages [7,474 kB]                             
Hit http://ftp.us.debian.org wheezy/main Sources                                               
Hit http://ftp.us.debian.org wheezy/contrib Sources                                           
Hit http://ftp.us.debian.org wheezy/non-free Sources                                           
Hit http://ftp.us.debian.org wheezy/main i386 Packages                                         
Hit http://ftp.us.debian.org wheezy/contrib i386 Packages                                     
Hit http://ftp.us.debian.org wheezy/non-free i386 Packages                                     
Hit http://ftp.us.debian.org wheezy/contrib Translation-en                                     
Hit http://ftp.us.debian.org wheezy/main Translation-en                                       
Hit http://ftp.us.debian.org wheezy/non-free Translation-en                                   
Fetched 25.9 MB in 50s (511 kB/s)                                                             
W: GPG error: https://people.debian.org xbmc-ffmpeg-unstable/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F664D256B4691A7D
W: Failed to fetch http://security.debian.org/debian/dists/wheezy/updates/main/source/Sources  404  Not Found [IP: 128.61.240.73 80]

W: Failed to fetch http://security.debian.org/debian/dists/wheezy/updates/contrib/source/Sources  404  Not Found [IP: 128.61.240.73 80]

W: Failed to fetch http://security.debian.org/debian/dists/wheezy/updates/non-free/source/Sources  404  Not Found [IP: 128.61.240.73 80]

W: Failed to fetch http://security.debian.org/debian/dists/wheezy/updates/main/binary-i386/Packages  404  Not Found [IP: 128.61.240.73 80]

W: Failed to fetch http://security.debian.org/debian/dists/wheezy/updates/contrib/binary-i386/Packages  404  Not Found [IP: 128.61.240.73 80]

W: Failed to fetch http://security.debian.org/debian/dists/wheezy/updates/non-free/binary-i386/Packages  404  Not Found [IP: 128.61.240.73 80]

W: Failed to fetch http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/dists/jessie/main/binary-i386/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/team-xbmc/xbmc-nightly/ubuntu/dists/jessie/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.


And here is my sources.list:

Code: Select all
#

# deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official i386 NETINST Binary-1 20141018-11:53]/ wheezy contrib main non-free

# deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official i386 NETINST Binary-1 20141018-11:53]/ wheezy contrib main non-free

deb http://ftp.us.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy main contrib non-free

deb http://security.debian.org/debian wheezy/updates main contrib non-free
deb-src http://security.debian.org/debian wheezy/updates main contrib non-free

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian wheezy-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy-updates main contrib non-free

#testing
deb http://ftp.us.debian.org/debian jessie main contrib non-free

#unstable
deb http://ftp.us.debian.org/debian sid main contrib non-free

#backports
deb http://http.debian.net/debian/ wheezy-backports main

# for Jessie and Sid (latest FFmpeg comes from unstable): 
deb https://people.debian.org/~rbalint/ppa/xbmc-ffmpeg xbmc-ffmpeg-unstable/
deb http://http.debian.net/debian unstable main


I'm pretty sure the issue has something to do with the edits I did with my sources file. I edited in a bunch of different repositories when I was trying to install some newer packages and it messed something up. Now that we know this, how can I get things back to normal and properly update my packages?

My Debian version (got from "uname -a"): Debian 3.16.7-ckt9-3~deb8u1~bpo70+1 (2015-04-27) i686 GNU/Linux

Thank you.

-- edit

Decided to reinstall Debian (or some other distro)
eriksatie
 
Posts: 15
Joined: 2012-01-10 00:29

Re: [SOLVED]Issue with updating packages and sources.list fi

Postby Randicus » 2015-07-27 02:03

I'm pretty sure the issue has something to do with the edits I did with my sources file.
Definitely. Wheezy, Jessie, Testing, Unstable and Ubuntu PPAs! After you re-install the system, do not do that again. I also suggest reading the basic information about the system on debian.org.
Randicus
 
Posts: 2664
Joined: 2011-05-08 09:11

Re: [SOLVED]Issue with updating packages and sources.list fi

Postby johnyc » 2015-07-27 22:09

DontBreakDebian
Debian Stable should not be combined with other releases. If you're trying to install software that isn't available in the current Debian Stable release, it's not a good idea to add repositories for other Debian releases. The problems might not happen right away, but the next time you install updates.

The reason things can break is because the software packaged for one Debian release is built to be compatible with the rest of the software for that release. For example, installing packages from Jessie on a Wheezy system will also install newer versions of core libraries including glibc. This results in a system that is not Wheezy or Jessie but a broken mix of the two.

Repositories that can create a FrankenDebian if used with Debian Stable:

Debian testing release (currently stretch)

Debian unstable release (also known as sid)

Ubuntu, Mint or other derivative repositories are not compatible with Debian!
Ubuntu PPAs
johnyc
 
Posts: 8
Joined: 2015-07-26 12:46


Return to General Questions

Who is online

Users browsing this forum: No registered users and 20 guests

fashionable