Solved: apt-get update hangs
|
9th Feb, 2015, 07:33 PM
Post: #1
|
|||
|
|||
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 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! |
|||
12th Feb, 2015, 12:21 AM
Post: #2
|
|||
|
|||
RE: apt-get update hangs
Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
12th Feb, 2015, 08:18 AM
Post: #3
|
|||
|
|||
RE: apt-get update hangs
(12th Feb, 2015 12:21 AM)IriDium Wrote: Have looked in the 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. |
|||
13th Feb, 2015, 03:03 AM
Post: #4
|
|||
|
|||
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.
|
|||
13th Feb, 2015, 07:21 AM
Post: #5
|
|||
|
|||
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. |
|||
13th Feb, 2015, 09:51 PM
Post: #6
|
|||
|
|||
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. |
|||
14th Feb, 2015, 03:22 AM
Post: #7
|
|||
|
|||
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. |
|||
« Next Oldest | Next Newest »
|