Synaptic Package Manager has trouble downloading certain packages
I have Ubuntu server 10.10 installed in a VMWare virtual machine. The machine is sitting behind a corporate firewall, and I have it configured to connect to the outside world via cntlm. For the most part this works fine. I'm able to browse the web and I can use apt-get install (or the Ubuntu software center if I'm feeling graphical) to install and update packages. The problem is on certain packages (sun-java6-bin being the most recent one) the package manager has trouble. It will download the entire package, but never actually completes the download. After some amount of time it tries again and the same thing happens. It will continue this for hours/days (I ran it over the weekend once) until I cancel. This causes me no end of trouble when I'm trying to install updates. In order to install the software in the first place, I manually downloaded the deb packages and unpacked them locally. This doesn't work well for updates, mainly because (as a relative newb) I don't know where the update manager stores the packages. However, I'd like to solve the problem once and for all so I don't have to manually intervene if possible. It seems like a timeout issue, but I can't find where to change timeout settings to allow the downloads to finish. And as I mentioned, it isn't always obvious which packages will give me a problem and which won't. (My last update I downloaded 140 of 180 MB worth of updates before choking on the java6 update). Has anyone else had this problem? I've tried searching through the forums but I can't find anything related to this. I'd appreciate any help someone could offer.
Thank you.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Bob Konecny
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Can you give the output of:
sudo apt-get update; sudo apt-get -y upgrade
Thanks
Revision history for this message
|
#2 |
So, here is the result of the apt-get update:
Get:1 http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Ign http://
Ign http://
Get:2 http://
Get:3 http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Fetched 2,636B in 16s (164B/s)
Reading package lists...
The result of the apt-get upgrade shows the problem to which I am referring. You'll see it repeatedly attempt to get the sun-java6-bin package. What you can't see from the log is that it downloads all 30 MB, but the download never finishes. It pauses for some amount of time then retries ad infinitum:
Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
linux-generic-pae linux-headers-
linux-
The following packages will be upgraded:
adobe-flashplugin apparmor apparmor-utils apport apport-gtk aptdaemon
bash-completion bind9-host brasero brasero-cdrkit brasero-common bsdutils
computer-janitor computer-
emacs23-
evolution-common evolution-
evolution-plugins fuse-utils google-
icedtea-
libapparmor-perl libapparmor1 libbind9-60 libblkid1 libbrasero-media1
libc-bin libc-dev-bin libc6 libc6-dev libcamel1.2-14 libdbus-1-3 libdns66
libebackend1.2-0 libebook1.2-9 libecal1.2-7 libedata-book1.2-2
libedata-cal1.2-7 libedataserver1
libegroupwise
libglib2.0-0 libglib2.0-data libgssapi-krb5-2 libhpmud0 libisc60 libisccc60
libisccfg60 libk5crypto3 libkrb5-3 libkrb5support0 liblwres60
libnautilus-
libpq5 libsane-hpaio libservlet2.5-java libsmbclient libssl0.9.8 libuuid1
linux-firmware linux-libc-dev login media-player-info mount nautilus
nautilus-data nautilus-
openjdk-
openoffice.
openoffice.
openoffice.
openoffice.
openssh-client openssh-server openssl parted passwd postgresql
postgresql-8.4 postgresql-client postgresql-
postgresql-
python-apt python-aptdaemon python-
python-uno rhythmbox rhythmbox-
samba-common-bin ssh-askpass-gnome sudo sun-java6-bin sun-java6-demo
sun-java6-jdk sun-java6-jre sun-java6-plugin tar telepathy-gabble
ttf-opensymbol ttf-ubuntu-
uno-libs3 update-manager update-manager-core upstart ure util-linux
uuid-runtime xdg-utils xkb-data xserver-common xserver-xorg-core
xserver-
154 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 67.3MB/308MB of archives.
After this operation, 5,689kB of additional disk space will be used.
Do you want to continue [Y/n]? Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Revision history for this message
|
#3 |
Try:
sudo apt-get clean; sudo apt-get -y upgrade
Should be fine
Revision history for this message
|
#4 |
Thanks for the suggestion, but it isn't fine. I'm not an expert, but doesn't the apt-get clean just delete all the packages that were downloaded during my previous attempt at an upgrade?
I tried running the commands as you suggested, and I'm having the exact problem that I mentioned above. As you can see from the log, the upgrade downloads a lot of packages, but gets stuck on both sun-java6-bin and openjdk-
Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
linux-generic-pae linux-headers-
linux-
The following packages will be upgraded:
adobe-flashplugin apparmor apparmor-utils apport apport-gtk aptdaemon
bash-completion bind9-host brasero brasero-cdrkit brasero-common bsdutils
computer-janitor computer-
emacs23-
evolution-common evolution-
evolution-plugins fuse-utils google-
icedtea-
libapparmor-perl libapparmor1 libbind9-60 libblkid1 libbrasero-media1
libc-bin libc-dev-bin libc6 libc6-dev libcamel1.2-14 libdbus-1-3 libdns66
libebackend1.2-0 libebook1.2-9 libecal1.2-7 libedata-book1.2-2
libedata-cal1.2-7 libedataserver1
libegroupwise
libglib2.0-0 libglib2.0-data libgssapi-krb5-2 libhpmud0 libisc60 libisccc60
libisccfg60 libk5crypto3 libkrb5-3 libkrb5support0 liblwres60
libnautilus-
libpq5 libsane-hpaio libservlet2.5-java libsmbclient libssl0.9.8 libuuid1
linux-firmware linux-libc-dev login media-player-info mount nautilus
nautilus-data nautilus-
openjdk-
openoffice.
openoffice.
openoffice.
openoffice.
openssh-client openssh-server openssl parted passwd postgresql
postgresql-8.4 postgresql-client postgresql-
postgresql-
python-apt python-aptdaemon python-
python-uno rhythmbox rhythmbox-
samba-common-bin ssh-askpass-gnome sudo sun-java6-bin sun-java6-demo
sun-java6-jdk sun-java6-jre sun-java6-plugin tar telepathy-gabble
ttf-opensymbol ttf-ubuntu-
uno-libs3 update-manager update-manager-core upstart ure util-linux
uuid-runtime xdg-utils xkb-data xserver-common xserver-xorg-core
xserver-
154 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 308MB of archives.
After this operation, 5,689kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Get:72 http://
Get:73 http://
Get:74 http://
Get:75 http://
Get:76 http://
Get:77 http://
Get:78 http://
Get:79 http://
Get:80 http://
Get:81 http://
Get:82 http://
Get:83 http://
Get:84 http://
Get:85 http://
Get:86 http://
Get:87 http://
Get:88 http://
Get:89 http://
Get:90 http://
Get:91 http://
Get:92 http://
Get:93 http://
Get:94 http://
Get:95 http://
Get:96 http://
Get:97 http://
Get:98 http://
Get:99 http://
Get:100 http://
Get:101 http://
Get:102 http://
Get:103 http://
Get:104 http://
Get:105 http://
Get:106 http://
Get:107 http://
Get:108 http://
Get:109 http://
Get:110 http://
Get:111 http://
Get:112 http://
Get:113 http://
Get:114 http://
Get:115 http://
Get:116 http://
Get:117 http://
Get:118 http://
Get:119 http://
Get:120 http://
Get:121 http://
Get:122 http://
Get:123 http://
Get:124 http://
Get:125 http://
Get:126 http://
Get:127 http://
Get:128 http://
Get:129 http://
Get:130 http://
Get:131 http://
Get:132 http://
... (cont'd) ...
Revision history for this message
|
#5 |
Try going into software sources and changing the repository to something else, I tend to find that the main server, the country main servers, the security server and the canonical servers are all slow and do timeout.
It may be that the servers are going through a brief busy period, and I would suggest that you try again in 17 hours time.
Revision history for this message
|
#6 |
Try going into software sources and changing the repository to something else, I tend to find that the main server, the country main servers, the security server and the canonical servers are all slow and do timeout.
It may be that the servers are going through a brief busy period, and I would suggest that you try again in 17 hours time.
Revision history for this message
|
#7 |
And that was not meant to be an answer as I hit the wrong button.
Revision history for this message
|
#8 |
I don't believe that the repository was the solution either. I tried several different repositories, each with the same result. Finally I believe I fixed my immediate problem (which was performing the upgrade) by uninstalling the openjdk (my application requires the sun jdk so I didn't need openjdk). Then I manually downloaded the sun jdk packages from the ubuntu partner archive (http://
A question: changing the repository did not affect the location of the partner packages, so even though the bulk of the packages came from other sources, the sun-java6-bin package that was giving me so much trouble always came from the same source. Do the mirrors include the partner packages, and did I just miss something when I changed the repository that could have included the partner repository?
Thanks again for your suggestion.