Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] apt-get update hangs
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: apt-get update hangs
9th Feb, 2015, 07:33 PM
Post: #1
degeulars Offline
Registered
Posts: 5
Joined: Feb 2015
Reputation: 0
apt-get update hangs
Hello,

I'm running Xbian 1.0RC3 on a raspberry pi B with wired ethernet attached to a projector via HDMI and nothing else hooked up, I get the media from a NAS using CIFS and AFP.

I recently updated the sources.list files as instructed on the FAQ page to fix the
xbian.brantje.org seem to be unreachable error

When I run apt-get update it hangs after retrieving the files.

Code:
xbian@FramboiseTV ~ $ sudo apt-get update
[sudo] password for xbian:
Get:1 http://mirrordirector.raspbian.org wheezy Release.gpg [490 B]
Get:2 http://mirrordirector.raspbian.org wheezy Release [14.4 kB]
Get:3 http://apt.xbian.org stable Release.gpg [490 B]                      
Get:4 http://apt.xbian.org stable Release [3,239 B]
Get:5 http://mirrordirector.raspbian.org wheezy/main armhf Packages [9,534 kB]
Get:6 http://apt.xbian.org stable/main armhf Packages [23.5 kB]    
Get:7 http://apt.xbian.org stable/rpi-wheezy armhf Packages [11.8 kB]        
Ign http://apt.xbian.org stable/main Translation-en_US                              
Ign http://apt.xbian.org stable/main Translation-en        
Ign http://apt.xbian.org stable/rpi-wheezy Translation-en_US
Ign http://apt.xbian.org stable/rpi-wheezy Translation-en  
Get:8 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [26.4 kB]                                                                                                
Get:9 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [58.0 kB]                                                                                                
Get:10 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [511 B]                                                                                                      
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_US                                                                                                          
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en                                                                                                            
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_US                                                                                                            
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en                                                                                                                
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_US                                                                                                        
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en                                                                                                            
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_US                                                                                                              
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en                                                                                                                
Fetched 9,673 kB in 33s (287 kB/s)



I've searched quite a bit around and tried all sorts of tricks such as deleting the various apt and dpkg lock files, manually changing the mirrors in /etc/apt/sources.list but nothing seems to make this problem go away it just hangs.

Here is my /etc/apt/sources.list

Code:
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

And /etc/apt/sources.list.d/xbian.list

Code:
deb mirror://apt.xbian.org/mirror.txt stable main rpi-wheezy

I appreciate the help, and really hope to find a fix for this.
Thanks!
Find all posts by this user
Quote this message in a reply
12th Feb, 2015, 12:21 AM
Post: #2
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: apt-get update hangs
Have looked in the FAQ?

http://www.xbian.org/faq/

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
12th Feb, 2015, 08:18 AM
Post: #3
degeulars Offline
Registered
Posts: 5
Joined: Feb 2015
Reputation: 0
RE: apt-get update hangs
(12th Feb, 2015 12:21 AM)IriDium Wrote:  Have looked in the FAQ?

http://www.xbian.org/faq/

Yes I have looked in the FAQ, it is after doing what is written in the FAQ that apt-get update started acting up. Before that it would run and finish, it would give me errors about the xbian.brantje.com being unreachable but still updated the raspbian stuff. Now it successfully fetches the package lists, successfully un gzips them and then just stops and doesn't go on to Read the package lists and exit.
Find all posts by this user
Quote this message in a reply
13th Feb, 2015, 03:03 AM
Post: #4
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: apt-get update hangs
OK: My mistake - misread your first post.

Something is certainly amiss.

Can you try upgrading via ssh xbian-config. Select all the options and see if that helps.

If not, can you supply the log from the upgrade.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
13th Feb, 2015, 07:21 AM
Post: #5
willlovett Offline
Registered
Posts: 1
Joined: Feb 2015
Reputation: 0
RE: apt-get update hangs
Hi there,

fyi, I'm seeing the same thing.

This was a newly installed Xbian 1.0 RC 3 Raspberry Pi.

Slightly suspiciously, xbian.brantje.com appears in xbmc.log. This is long after I'd followed the FAQ about changing the apt sources, and after a reboot. Grep of /etc and ~ doesn't find any files with brantje in.

Here are the snippet of xbmc.log, and cat's of my sources lists:
http://pastebin.com/8Dn2fBjX

I couldn't find any more helpful logs about apt itself.

Whilst update is hanging, upgrade does appear to be working, so I'm performing a package upgrade now & will let you know if it makes any difference

ok, so...

apt-get upgrade worked fine.

... and now so does apt-get update, *but*... it does (seemingly) hang for around 1 minute (on RPI B) before completing.

I have no way of telling whether it would have completed successfully if I'd have just left it before the upgrade. I'm *pretty* sure I left it for longer than that though.

Anyhow - works fine for me now. Recommend the original poster does an upgrade first, and or waits a little longer for update to return.
Find all posts by this user
Quote this message in a reply
13th Feb, 2015, 09:51 PM
Post: #6
EckartH Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
RE: apt-get update hangs
I see exactly the same thing as degeulars.

I let apt-get update running and waited for several hours. No progress.
Find all posts by this user
Quote this message in a reply
14th Feb, 2015, 03:22 AM
Post: #7
degeulars Offline
Registered
Posts: 5
Joined: Feb 2015
Reputation: 0
RE: apt-get update hangs
As Iridium suggested running the update via xbian-config through ssh:

1. Update mirrors. Runs fine and return to main menu ok
2. Apt-get update. Fetches the package lists and just hangs. Killed that and relogged in
3. Check deb upgrades. Runs and updated a bunch of stuff most importantly apt and apt-utils.

After that apt-get update works again. It also updated xbmc to kodi so I had to fiddle around with the settings but it works!

Make sure you have updated the sources.list and sources.list.d/xbian.list as instructed in the xbian FAQ and then run the updates through ssh in xbian-config without getting too concerned that apt-get update doesn't run successfully. Worked for me anyway. Check your free space before, I got some problems after the update with a 98% full root partition, but destroyed some snapshots.

Thanks Iridium! Good luck to the others with the same problem.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 05:51 AM Powered By MyBB, © 2002-2025 MyBB Group.