Matthew Stevenson wrote:
For quite a while (2 or 3 weeks) the package manager has been trying to install 
a new version of virtualbox from /extra repo. The problem is that it keeps 
getting to 37MB downloaded, and then the progress bar jumps back to 31MB, and 
it gets stuck in this loop, going between 31 and 37MB.

Whenever I let it have another go, it starts the download from the 31MB mark, 
so I'm assuming it has some kind of cache. Is there a way to clear it and let 
it start fresh over? I saw some things on the net saying that /var/pkg/download 
could be safely deleted, which I tried to do, but it was deleting it for over 
an hour and still didn't finish, so I gave up.

Note, the same behaviour is observed if I use command line pkg image-update.

Any tips would be appreciated,

If you are using build 118 or newer, this is a known (but is resolved in future builds) issue:

http://defect.opensolaris.org/bz/show_bug.cgi?id=10010

The issue in summary is that the timeout behaviour of the pkg(5) transport system changed subtly in build 118, and so if it can't retrieve the file within 30 seconds, it fails and retries the transfer with the assumption that it was corrupt or there was a bad connection. That's why you see the 'looping'.

To workaround it, simply set the PKG_CLIENT_TIMEOUT environment variable before executing the pkg command:

export PKG_CLIENT_TIMEOUT=900
pfexec pkg image-update

Cheers,
--
Shawn Walker
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to