Re: broken updates in aptitude & connection failed

2004-06-23 Thread Benedict Verheyen
Aaron Maxwell wrote:
> Yep.
>
> apt-get -dy install FOO && aptitude install FOO
>
> where FOO is one or more package names, or 'upgrade' or 'dist-upgrade'
>
> If you don't speak shell, the '&&' operator means 'execute the command
> on my right if and only if the command on my left has a return status
> of true'.
>
> You need to use apt-get as the first command.  This is because apt-get
> returns false if the download fails, while aptitude returns true on
> success or failure.  Once apt-get downloads the packages, aptitude
> finds them locally, and installs using the normal aptitude features.
>
> Best,
> Aaron Maxwell - http://redsymbol.com

Thanks, i will try that next time.

Benedict


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: broken updates in aptitude & connection failed

2004-06-23 Thread Aaron Maxwell
On Tuesday 22 June 2004 04:31 am, Benedict Verheyen wrote:
> Is there a way to make sure aptitude first tries to download all
> packages and only updates if ALL packages are succesfully download?

Yep.

apt-get -dy install FOO && aptitude install FOO

where FOO is one or more package names, or 'upgrade' or 'dist-upgrade'

If you don't speak shell, the '&&' operator means 'execute the command 
on my right if and only if the command on my left has a return status 
of true'.  

You need to use apt-get as the first command.  This is because apt-get 
returns false if the download fails, while aptitude returns true on 
success or failure.  Once apt-get downloads the packages, aptitude 
finds them locally, and installs using the normal aptitude features.

Best,
Aaron Maxwell - http://redsymbol.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: broken updates in aptitude & connection failed

2004-06-22 Thread Benedict Verheyen
> Hi,
>
> Often i get a "Connection failed" message when trying to update my
> packages. This happens with apt-get and aptitude.

This part of the problem is probably solved (testing rigth now)
The problem is related to the number of seconds specified in the Timeout
var in the /etc/apt/apt.conf file.
I specified 5 seconds and apparently this is enough to cause a time out
or have a connection fail.

Benedict


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]