Skip to main content
Added info to disable the timer before booting
Source Link
Ingo
  • 42.7k
  • 20
  • 85
  • 205

It is the apt-daily-upgrade.service called with the apt-daily-upgrade.timer every day. I don't know why it make problems on your installation. Anyway, you don't want to run it automatically. You can disable the timer with:

rpi ~$ sudo systemctl disable apt-daily-upgrade.timer

The problem is that you can't do it because the boot get stuck on executing the service. When I look at the service with:

rpi ~$ systemctl cat apt-daily-upgrade.service
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

I see that the service will timeout (TimeoutStopSec) after 900 seconds, that are 15 minutes. So boot your RasPi and wait at least 15 min. Maybe the RasPi will continue booting and you are able to disable the timer. Try it

If you want to disable the timer before first booting you must mount the second ext4 root partition of the CD Card on a computer with a linux operating system. If it doesn't work thereOther operating systems are other possibilities but a bit more difficultnot able to mount ext4. If you have mounted the root partition to e.g. /mnt/ then you can disable the apt-daily-upgrade.timer by deleting a symlink:

pc ~$ sudo rm /mnt/etc/systemd/system/timers.target.wants/apt-daily-upgrade.timer

It is the apt-daily-upgrade.service called with the apt-daily-upgrade.timer every day. I don't know why it make problems on your installation. Anyway, you don't want to run it automatically. You can disable the timer with:

rpi ~$ sudo systemctl disable apt-daily-upgrade.timer

The problem is that you can't do it because the boot get stuck on executing the service. When I look at the service with:

rpi ~$ systemctl cat apt-daily-upgrade.service
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

I see that the service will timeout (TimeoutStopSec) after 900 seconds, that are 15 minutes. So boot your RasPi and wait at least 15 min. Maybe the RasPi will continue booting and you are able to disable the timer. Try it first. If it doesn't work there are other possibilities but a bit more difficult.

It is the apt-daily-upgrade.service called with the apt-daily-upgrade.timer every day. I don't know why it make problems on your installation. Anyway, you don't want to run it automatically. You can disable the timer with:

rpi ~$ sudo systemctl disable apt-daily-upgrade.timer

The problem is that you can't do it because the boot get stuck on executing the service. When I look at the service with:

rpi ~$ systemctl cat apt-daily-upgrade.service
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

I see that the service will timeout (TimeoutStopSec) after 900 seconds, that are 15 minutes. So boot your RasPi and wait at least 15 min. Maybe the RasPi will continue booting and you are able to disable the timer.

If you want to disable the timer before first booting you must mount the second ext4 root partition of the CD Card on a computer with a linux operating system. Other operating systems are not able to mount ext4. If you have mounted the root partition to e.g. /mnt/ then you can disable the apt-daily-upgrade.timer by deleting a symlink:

pc ~$ sudo rm /mnt/etc/systemd/system/timers.target.wants/apt-daily-upgrade.timer
Added hint about other possibilities to disable the timer
Source Link
Ingo
  • 42.7k
  • 20
  • 85
  • 205

It is the apt-daily-upgrade.service called with the apt-daily-upgrade.timer every day. I don't know why it make problems on your installation. Anyway, you don't want to run it automatically. You can disable the timer with:

rpi ~$ sudo systemctl disable apt-daily-upgrade.timer

The problem is that you can't do it because the boot get stuck on executing the service. When lookingI look at the service with:

rpi ~$ systemctl cat apt-daily-upgrade.service
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

youI see that the service will timeout (TimeoutStopSec) after 900 seconds, that are 15 minutes. So boot your RasPi and wait at least 15 min. Maybe the RasPi will continue booting and you are able to disable the timer. Try it first. If it doesn't work there are other possibilities but a bit more difficult.

It is the apt-daily-upgrade.service called with the apt-daily-upgrade.timer every day. I don't know why it make problems on your installation. Anyway, you don't want to run it automatically. You can disable the timer with:

rpi ~$ sudo systemctl disable apt-daily-upgrade.timer

The problem is that you can't do it because the boot get stuck on executing the service. When looking at the service with:

rpi ~$ systemctl cat apt-daily-upgrade.service
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

you see that the service will timeout (TimeoutStopSec) after 900 seconds, that are 15 minutes. So boot your RasPi and wait at least 15 min. Maybe the RasPi will continue booting and you are able to disable the timer.

It is the apt-daily-upgrade.service called with the apt-daily-upgrade.timer every day. I don't know why it make problems on your installation. Anyway, you don't want to run it automatically. You can disable the timer with:

rpi ~$ sudo systemctl disable apt-daily-upgrade.timer

The problem is that you can't do it because the boot get stuck on executing the service. When I look at the service with:

rpi ~$ systemctl cat apt-daily-upgrade.service
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

I see that the service will timeout (TimeoutStopSec) after 900 seconds, that are 15 minutes. So boot your RasPi and wait at least 15 min. Maybe the RasPi will continue booting and you are able to disable the timer. Try it first. If it doesn't work there are other possibilities but a bit more difficult.

Source Link
Ingo
  • 42.7k
  • 20
  • 85
  • 205

It is the apt-daily-upgrade.service called with the apt-daily-upgrade.timer every day. I don't know why it make problems on your installation. Anyway, you don't want to run it automatically. You can disable the timer with:

rpi ~$ sudo systemctl disable apt-daily-upgrade.timer

The problem is that you can't do it because the boot get stuck on executing the service. When looking at the service with:

rpi ~$ systemctl cat apt-daily-upgrade.service
# /lib/systemd/system/apt-daily-upgrade.service
[Unit]
Description=Daily apt upgrade and clean activities
Documentation=man:apt(8)
ConditionACPower=true
After=apt-daily.service network.target network-online.target systemd-networkd.service NetworkManager.service connman.service

[Service]
Type=oneshot
ExecStartPre=-/usr/lib/apt/apt-helper wait-online
ExecStart=/usr/lib/apt/apt.systemd.daily install
KillMode=process
TimeoutStopSec=900

you see that the service will timeout (TimeoutStopSec) after 900 seconds, that are 15 minutes. So boot your RasPi and wait at least 15 min. Maybe the RasPi will continue booting and you are able to disable the timer.