#How do I enable unattended-upgrades in Cubic?

36 messages · Page 1 of 1 (latest)

old ice
#

I’m trying to enable unattended-upgrades in Cubic, but here’s what it presents;
“Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable unattended-upgrades
System has not been booted with systemd as unit system (PID 1). Can’t operate.
Failed to connect to bus: Host is down

delicate grove
#

sudo apt install unattended-upgrades

#

sudo systemctl status unattended-upgrades

old ice
delicate grove
#

@old icescreenshot it please

#

By default, however, only security updates are set to be automatically updated

old ice
delicate grove
#

What is the output of $ ps -p 1 executed inside Cubic's virtual terminal?

old ice
#

error: process ID list syntax error

delicate grove
#

echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
dpkg-reconfigure -f noninteractive unattended-upgrades

#

@old ice

old ice
#

Yes

#

It didn’t give me any messages in the terminal

#

So I assume that worked

delicate grove
#

edit /etc/apt/apt.conf.d/50unattended-upgrades to include the packages you want to update

#

Line starting with double slashes ( // ) are commented. If you want to update a repository you need to uncomment or remove the double slash signs.

#

to blacklist some packages from being upgraded, remove the double slash signs in the line with the parameter Unattended-Upgrade::Package-Blacklist {

#

you may want to receive email notifications. To achieve this, scroll and locate the line below and remove the preceding double slashes

#

//Unattended-Upgrade::Mail " ";

#

@old ice

old ice
#

I think we're good for the mail updates

delicate grove
#

In addition, you can choose to receive email updates in case an update goes wrong, such as when security updates fail. To do so, locate this line

#

//Unattended-Upgrade::MailReport "on-change"; uncomment it and change the attribute "on-change" to "only-on-error"

old ice
#

So what would be my distro id

delicate grove
#

@old ice it gets that for you

old ice
#

Okay, how do I edit that file in Cubic

delicate grove
#

@old ice with nano or your favorite terminal based editor

old ice
#

what is nano

delicate grove
#

nano is a text editor for the command lines

old ice
#

alright, so I'll just compile my work in Cubic and switch to nano

delicate grove
#

you can use nano in cubic