Comment 10 for bug 975793

Revision history for this message
Allo (allo) wrote :

seems, this is still an issue with cron-apt:
$ apt-cache policy aptitude
aptitude:
  Installed: 0.6.6-1ubuntu1
  Candidate: 0.6.6-1ubuntu1

/etc/cron-apt/config:
MAILON="error"
APTCOMMAND=/usr/bin/aptitude
OPTIONS="-o Acquire::http::Dl-Limit=2000"

$ cat action.d/0-update
update -o quiet=2
$ cat action.d/3-download
autoclean -y
dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
$ cat action.d/5-install
autoclean -y
dist-upgrade --safe-resolver -y -o APT:Get:Show-Upgraded=true

resulting in error mails like this one:
CRON-APT RUN [/etc/cron-apt/config]: Tue May 22 04:00:01 CEST 2012
CRON-APT SLEEP: 3161, Tue May 22 04:52:42 CEST 2012
CRON-APT ACTION: 3-download
CRON-APT LINE: /usr/bin/aptitude -o Acquire::http::Dl-Limit=2000 dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
The following packages will be upgraded:
  icedtea-6-jre-cacao icedtea-6-jre-jamvm linux-headers-3.2.0-24
[...]
  update-manager-core update-manager-kde
20 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 53.3 MB/98.0 MB of archives. After unpacking 2030 kB will be used.
Writing extended state information...
Get: 1 http://pi.wiss-stud/ubuntu/ precise-updates/main linux-image-3.2.0-24-generic amd64 3.2.0-24.38 [38.3 MB]
[...]
Fetched 53.3 MB in 23s (2243 kB/s)
E: Failed to write temporary StateFile /var/lib/apt/extended_states.tmp
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...

I'm not quite sure, if this bug really is the relevant one, but i was redirected to this bug in: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/999810 because the other bug is only related to apt-get.