Hi Henry
You have found the problem, so it is not so much for me to do. :-)
Basically cron-apt can only do that apt (or aptitude) can do and in
this case it fails because of a problem with the sources.list file.
A bit interesting that it was not logged though. I think that can be
improved for later releases. I think it is because errors were not
sent to the logging process.
If you run
apt-get > logfile.txt 2>&1
with the -x option enabled as I described in an earlier mail I think I
can tell that for sure.
Best regards,
// Ola
Quoting "Henry Bremridge" <henry.bremri...@xobie.com>:
Ola
Apologies was a bit too quick to send the earlier message.
1/ If any line in /etc/apt/sources.list fails then the upgrade fails
2/ If sources.list "works" then cron-apt works
3/ I have tried this with both apt-get and aptitude
My current system now is as follows
- removed the secure-testing lines
- reusing aptitude
Again please advise if you wish me try anything else
--
Henry
Photocopies or faxes of my signature are not binding.
This email has been signed with an electronic signature in
accordance with subsection 7(3) of the Electronic Communications Act
2000.
Digital Key Signature: GPG RSA 0xFB447AA1
Mon May 4 14:47:39 BST 2009
On Mon, May 04, 2009 at 02:40:36PM +0100, henryb...@fsfe.org wrote:
Ola
Solved I think. Second run worked: see below
Just to be clear .. :)
In file /usr/sbin/cron-apt
I changed line 1
from #!/bin/sh
to #!/bin/bash -x
Then in root I ran the command
cron-apt > logfile.txt 2&>1
First Run
Logfile.txt: no contents
/etc/cron-apt/log
CRON-APT RUN [2]: Mon May 4 14:09:06 BST 2009
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/apt-get update -o quiet=2
W: Failed to fetch
http://www.debian-multimedia.org/dists/testing/Release Unable to find
expected entry contrib/binary-i386/Packages in Meta-index file
(malformed Release file?)
W: Failed to fetch
http://secure-testing.debian.net/dists/testing/updates/main/binary-i386/Packages
404 Not Found
W: Failed to fetch
http://secure-testing.debian.net/dists/testing/updates/contrib/binary-i386/Packages
404 Not Found
W: Failed to fetch
http://secure-testing.debian.net/dists/testing/updates/non-free/binary-i386/Packages
404 Not Found
W: Failed to fetch
http://secure-testing.debian.net/dists/squeeze/updates/main/binary-i386/Packages
404 Not Found
E: Some index files failed to download, they have been ignored, or old
ones used instead.
Second Run
I changed the sources.list file removing the failed to fetch lines
Then ran the command again
here logfile.txt was again empty
/etc/cron-apt/log was as follows
CRON-APT RUN [2]: Mon May 4 14:25:09 BST 2009
CRON-APT ACTION: 0-update
CRON-APT LINE: /usr/bin/apt-get update -o quiet=2
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/apt-get autoclean -y
Reading package lists...
Building dependency tree...
Reading state information...
CRON-APT LINE: /usr/bin/apt-get dist-upgrade -y -o
APT::Get::Show-Upgraded=true
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ie all seemed to work
At the moment I have kept the secure-testing lines removed
Let me know what you want me to do next
--
Henry
On Mon, May 04, 2009 at 03:00:44PM +0200, Ola Lundqvist wrote:
> Hi Henry
>
> In the first line of cron-apt binary you have a line telling #!/bin/bash
> (or #!/bin/sh).
>
> Change that line to
> #!/bin/bash -x
>
> Then run the command and give me the output.
>
> cron-apt > logfile.txt 2&>1
>
> Best regards,
>
> // Ola
>
> Quoting "Henry Bremridge" <henry.bremri...@xobie.com>:
>
>> Ola
>>
>> Be glad to help if and where I can.
>>
>> When you say add a few "echo something" into cron-apt, please tell me
>> EXACTLY what you want me to do.
>>
>> :) I am happy enough using the command line and I am happy enough to add
>> things to a config file, but todate I have only followed "recipes".
>>
>> --
>> Henry
>>
>> On Mon, May 04, 2009 at 09:08:44AM +0200, Ola Lundqvist wrote:
>>> Hi Henry
>>>
>>> Interesting. I have to look into this. If you want to help you can put
>>> in a few "echo something" lines into cron-apt to determine where it
>>> exits.
>>>
>>> Best regards,
>>>
>>> // Ola
>>
>
>
>
> --
> --- Inguza Technology AB --- MSc in Information Technology ----
> / o...@inguza.com Annebergsslingan 37 \
> | o...@debian.org 654 65 KARLSTAD |
> | http://inguza.com/ Mobile: +46 (0)70-332 1551 |
> \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
> ---------------------------------------------------------------
--
--- Inguza Technology AB --- MSc in Information Technology ----
/ o...@inguza.com Annebergsslingan 37 \
| o...@debian.org 654 65 KARLSTAD |
| http://inguza.com/ Mobile: +46 (0)70-332 1551 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org