dorpm
September 10th, 2020, 07:28 PM
Hi,
on my box I have a cronjob for updates:
/usr/bin/apt update && /usr/bin/apt -y upgrade
But /var/log/apt/history.log tells me that dpkg reports an issue:
Start-Date: 2020-09-09 22:00:17
Commandline: /usr/bin/apt -y upgrade
Upgrade: smartmontools:amd64 (6.5+svn4324-1, 6.5+svn4324-1ubuntu0.1)
Error: Sub-process /usr/bin/dpkg returned an error code (2)
End-Date: 2020-09-09 22:00:17
Nevertheless when I start the same command on the console for some reason the same command works:
Start-Date: 2020-09-09 22:12:53Commandline: apt upgrade
Requested-By: flori (1000)
Upgrade: smartmontools:amd64 (6.5+svn4324-1, 6.5+svn4324-1ubuntu0.1)
End-Date: 2020-09-09 22:12:55
Any idea?
on my box I have a cronjob for updates:
/usr/bin/apt update && /usr/bin/apt -y upgrade
But /var/log/apt/history.log tells me that dpkg reports an issue:
Start-Date: 2020-09-09 22:00:17
Commandline: /usr/bin/apt -y upgrade
Upgrade: smartmontools:amd64 (6.5+svn4324-1, 6.5+svn4324-1ubuntu0.1)
Error: Sub-process /usr/bin/dpkg returned an error code (2)
End-Date: 2020-09-09 22:00:17
Nevertheless when I start the same command on the console for some reason the same command works:
Start-Date: 2020-09-09 22:12:53Commandline: apt upgrade
Requested-By: flori (1000)
Upgrade: smartmontools:amd64 (6.5+svn4324-1, 6.5+svn4324-1ubuntu0.1)
End-Date: 2020-09-09 22:12:55
Any idea?