LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-05-2016, 04:02 PM   #1
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Rep: Reputation: 229Reputation: 229Reputation: 229
issue with updating system


Had this setup for a while now without any issues and just noticed today when I did apt-get update then apt-get upgrade it gets stuck.

This is my old sources.list file:
Code:
deb http://ftp.us.debian.org/debian/ jessie main
deb-src http://ftp.us.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

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

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

# jessie BACKPORTS
#deb http://http.debian.net/debian jessie-backports main

# VirtualBox
deb http://download.virtualbox.org/virtualbox/debian jessie contrib

This is what what happened when I tried to apt-get upgrade
Code:
root@myserver:~# apt-get update
Hit http://download.virtualbox.org jessie InRelease
Get:1 http://download.virtualbox.org jessie/contrib amd64 Packages [1,350 B]                 
Hit http://security.debian.org jessie/updates InRelease                                                
Ign http://download.virtualbox.org jessie/contrib Translation-en_US                                    
Ign http://download.virtualbox.org jessie/contrib Translation-en     
Ign http://ftp.debian.org jessie InRelease                           
Hit http://security.debian.org jessie/updates/main Sources
Hit http://security.debian.org jessie/updates/contrib Sources                      
Hit http://security.debian.org jessie/updates/main amd64 Packages                   
Hit http://security.debian.org jessie/updates/contrib amd64 Packages                 
Hit http://security.debian.org jessie/updates/contrib Translation-en                 
Hit http://ftp.debian.org jessie Release.gpg                                               
Hit http://security.debian.org jessie/updates/main Translation-en     
Hit http://ftp.debian.org jessie Release                             
Hit http://ftp.debian.org jessie/main Sources   
Hit http://ftp.debian.org jessie/contrib Sources              
Hit http://ftp.debian.org jessie/non-free Sources             
Hit http://ftp.debian.org jessie/main amd64 Packages          
Hit http://ftp.debian.org jessie/contrib amd64 Packages        
Hit http://ftp.debian.org jessie/non-free amd64 Packages       
Hit http://ftp.debian.org jessie/contrib Translation-en        
Hit http://ftp.debian.org jessie/main Translation-en                 
Hit http://ftp.debian.org jessie/non-free Translation-en             
Ign http://ftp.utexas.edu jessie InRelease                                                             
Ign http://ftp.utexas.edu jessie-updates InRelease
Ign http://ftp.utexas.edu jessie Release.gpg
Ign http://ftp.utexas.edu jessie-updates Release.gpg
Ign http://ftp.utexas.edu jessie Release
Ign http://ftp.utexas.edu jessie-updates Release
Ign http://ftp.utexas.edu jessie/main Sources/DiffIndex
Ign http://ftp.utexas.edu jessie/main amd64 Packages/DiffIndex
Ign http://ftp.utexas.edu jessie-updates/main Sources/DiffIndex
Ign http://ftp.utexas.edu jessie-updates/contrib Sources/DiffIndex
Ign http://ftp.utexas.edu jessie-updates/main amd64 Packages/DiffIndex
Ign http://ftp.utexas.edu jessie-updates/contrib amd64 Packages/DiffIndex
Ign http://ftp.utexas.edu jessie/main Translation-en_US
Ign http://ftp.utexas.edu jessie/main Translation-en
Ign http://ftp.utexas.edu jessie-updates/contrib Translation-en_US
Ign http://ftp.utexas.edu jessie-updates/contrib Translation-en
Ign http://ftp.utexas.edu jessie-updates/main Translation-en_US
Ign http://ftp.utexas.edu jessie-updates/main Translation-en
Err http://ftp.utexas.edu jessie/main Sources
  503  Service Unavailable
Err http://ftp.utexas.edu jessie/main amd64 Packages
  503  Service Unavailable
Err http://ftp.utexas.edu jessie-updates/main Sources
  503  Service Unavailable
100% [Waiting for headers]
Above there's an issue with the server, a 503 error, right? So then I tried switching to a different mirror that I found on http://ftp.us.debian.org/debian/README.mirrors.txt like this:
Code:
deb http://mirrors.gigenet.com/debian/ jessie main
deb-src http://mirrors.gigenet.com/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://mirrors.gigenet.com/debian/ jessie-updates main contrib
deb-src http://mirrors.gigenet.com/debian/ jessie-updates main contrib

# debian 8 "jessie"
deb http://mirrors.gigenet.com/debian/ jessie main contrib non-free
deb-src http://mirrors.gigenet.com/debian/ jessie main contrib non-free
But when I try to update/upgrade I get this:
Code:
root@myserver:~# apt-get update
Ign http://dl.google.com stable InRelease
Get:1 http://dl.google.com stable Release.gpg [181 B]
Ign http://mirrors.gigenet.com jessie InRelease                                 
Get:2 http://dl.google.com stable Release [1,189 B]
Hit http://security.debian.org jessie/updates InRelease                          
Get:3 http://mirrors.gigenet.com jessie-updates InRelease [142 kB]
Get:4 http://dl.google.com stable/main amd64 Packages [1,355 B]
Get:5 http://mirrors.gigenet.com jessie Release.gpg [2,373 B]                                          
Get:6 http://mirrors.gigenet.com jessie-updates/main Sources [4,092 B]               
Get:7 http://mirrors.gigenet.com jessie-updates/contrib Sources [32 B]                   
Ign http://dl.google.com stable/main Translation-en_US                                   
Ign http://dl.google.com stable/main Translation-en
Get:8 http://mirrors.gigenet.com jessie-updates/contrib amd64 Packages [32 B]
Get:9 http://mirrors.gigenet.com jessie-updates/contrib i386 Packages [32 B]
Get:10 http://mirrors.gigenet.com jessie-updates/contrib Translation-en [14 B]
Get:11 http://mirrors.gigenet.com jessie-updates/main Translation-en [3,259 B]
Hit http://security.debian.org jessie/updates/main Sources                    
Get:12 http://mirrors.gigenet.com jessie Release [148 kB]
Hit http://security.debian.org jessie/updates/contrib Sources            
Hit http://security.debian.org jessie/updates/main amd64 Packages                      
Get:13 http://mirrors.gigenet.com jessie-updates/main amd64 Packages [4,636 B]
Hit http://security.debian.org jessie/updates/contrib amd64 Packages 
Hit http://security.debian.org jessie/updates/main i386 Packages
Get:14 http://mirrors.gigenet.com jessie-updates/main i386 Packages [4,632 B]
Hit http://security.debian.org jessie/updates/contrib i386 Packages                      
Get:15 http://mirrors.gigenet.com jessie/main Sources [7,059 kB]
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en             
Get:16 http://mirrors.gigenet.com jessie/contrib Sources [50.7 kB]
Get:17 http://mirrors.gigenet.com jessie/non-free Sources [99.2 kB]
Get:18 http://mirrors.gigenet.com jessie/main amd64 Packages [6,763 kB]
Get:19 http://mirrors.gigenet.com jessie/contrib amd64 Packages [50.1 kB]
Get:20 http://mirrors.gigenet.com jessie/non-free amd64 Packages [83.6 kB]
Get:21 http://mirrors.gigenet.com jessie/main i386 Packages [6,767 kB]
Get:22 http://mirrors.gigenet.com jessie/contrib i386 Packages [49.7 kB]
Get:23 http://mirrors.gigenet.com jessie/non-free i386 Packages [80.2 kB]
Get:24 http://mirrors.gigenet.com jessie/contrib Translation-en [38.5 kB]
Get:25 http://mirrors.gigenet.com jessie/main Translation-en [4,581 kB]      
Get:26 http://mirrors.gigenet.com jessie/non-free Translation-en [72.5 kB]   
Fetched 26.0 MB in 4s (5,867 kB/s)                                                             
Reading package lists... Done
W: Duplicate sources.list entry http://mirrors.gigenet.com/debian/ jessie/main amd64 Packages (/var/lib/apt/lists/mirrors.gigenet.com_debian_dists_jessie_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://mirrors.gigenet.com/debian/ jessie/main i386 Packages (/var/lib/apt/lists/mirrors.gigenet.com_debian_dists_jessie_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
I dont see where there are duplicates. It's probably right in my face and still dont see it.
Can someone shed some light please?

Thanks
Erik

Last edited by erik2282; 04-06-2016 at 12:34 PM.
 
Old 04-05-2016, 04:48 PM   #2
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 615

Rep: Reputation: 98
deb http://mirrors.gigenet.com/debian/ jessie main
deb http://mirrors.gigenet.com/debian/ jessie main contrib non-free
 
1 members found this post helpful.
Old 04-06-2016, 09:28 AM   #3
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Thank you. Im still confused though. Why did it work without a duplicate error before. If my old sources list had:

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


edit:
I commented out the 2nd one above and was able to update. Is it ok to leave like this?

Last edited by erik2282; 04-06-2016 at 09:37 AM.
 
Old 04-06-2016, 10:42 AM   #4
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 615

Rep: Reputation: 98
I don't know what it worked without a duplicate error too!

BUT you should have commented out the first line instead. You have removed contrib and non-free.

Unless you are a computer whizz and really need the source code you could comment out any line beginning "deb-src" (Debian Source[code]) as well.
 
1 members found this post helpful.
Old 04-06-2016, 11:05 AM   #5
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by arochester View Post
I don't know what it worked without a duplicate error too!

BUT you should have commented out the first line instead. You have removed contrib and non-free.

Unless you are a computer whizz and really need the source code you could comment out any line beginning "deb-src" (Debian Source[code]) as well.
Although it never hurts to leave the source repositories enabled.

I agree that I'd comment/remove the first line rather than the second, as a majority of people want/need contrib and non-free repos.
 
1 members found this post helpful.
Old 04-06-2016, 12:31 PM   #6
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Hi, sorry I didn't mean the second line in my sources.list file, I meant the second repo line listed in my post above (post#3) = deb http://ftp.us.debian.org/debian/ jessie main contrib non-free

Anyway..

What I did to successfully update/upgrade was to comment out the non-free lines .
Code:
deb http://mirrors.gigenet.com/debian/ jessie main
deb-src http://mirrors.gigenet.com/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://mirrors.gigenet.com/debian/ jessie-updates main contrib
deb-src http://mirrors.gigenet.com/debian/ jessie-updates main contrib

# debian 8 "jessie"
#deb http://mirrors.gigenet.com/debian/ jessie main contrib non-free
#deb-src http://mirrors.gigenet.com/debian/ jessie main contrib non-free
But then I dont get updates for non-free. What to do now?
 
Old 04-06-2016, 12:50 PM   #7
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Ok, so I just replaced the non-free lines with another mirror. All works fine now. Thanks all.

Code:
deb http://mirrors.gigenet.com/debian/ jessie main
deb-src http://mirrors.gigenet.com/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

deb http://mirrors.gigenet.com/debian/ jessie-updates main contrib
deb-src http://mirrors.gigenet.com/debian/ jessie-updates main contrib

deb http://http.us.debian.org/debian/ jessie main contrib non-free
deb-src http://http.us.debian.org/debian/ jessie main contrib non-free
 
Old 04-06-2016, 01:54 PM   #8
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
If you ever have mirror issues, you could also just switch to using the Debian redirector. It automagically shunts you to whatever mirror is showing the lowest latency at the time of your update.
 
1 members found this post helpful.
Old 04-06-2016, 03:38 PM   #9
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 829

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
Hadn't heard of this. Thanks Timothy!

Something else I was looking at.
http://wiki.linuxquestions.org/wiki/Apt-spy

Last edited by erik2282; 04-06-2016 at 03:44 PM.
 
Old 04-06-2016, 03:47 PM   #10
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Yup, that's also good.

Here's information on the redirector. I've been using it now for about 4 years, had no issues with it personally.
 
2 members found this post helpful.
Old 04-20-2016, 03:58 AM   #11
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by Timothy Miller View Post
Although it never hurts to leave the source repositories enabled.
It increases the time taken to update and increases the bandwidth requirements on Debian mirrors, which uses more electricity, creates more pollution, warms the planet, raises sea levels, and drowns kittens living near the coast!

All for no good reason if you're not using the source.

Last edited by descendant_command; 04-20-2016 at 04:00 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Network Issue while updating Kernel 2.6 to 3.8 ankit_singh Linux - Newbie 3 05-10-2013 10:23 AM
[SOLVED] System time issue after updating -current m23 Slackware 2 03-25-2013 12:07 PM
[SOLVED] system hangs at startup (black screen) after updating system ( ATI X200 ) devaj Linux - Newbie 3 05-01-2009 03:49 PM
Yum Updating issue Tinochelli Linux - Software 2 12-03-2004 08:08 PM
Slackware updating issue... mr_mandrill Slackware 5 03-09-2003 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration