Unattended upgrades - feedback

New to Debian (Or Linux in general)? Ask your questions here!

Unattended upgrades - feedback

Postby bengtfrost » 2018-04-18 19:33

Trying to install Unattended upgrades for Debian Stable including contrib and non-free packages on a friends computer. Also testing main packages (papirus icon set, testing is downpinned). Not sure if this is working.

// "o=Debian,a=stable";
// "o=Debian,a=stable-updates";
// "o=Debian,a=proposed-updates";
// "origin=Debian,codename=${distro_codename},label=Debian-Security";
// Uncommented line above and added following:
"o=Debian,n=stretch,l=Debian,c=main contrib non-free";
"o=Debian,n=stretch-updates,l=Debian,c=main contrib non-free";
"o=Debian,n=stretch,l=Debian-Security,c=main contrib non-free";
// Added papirus-icon-theme from testing repo
// see sources.list and preferences.d/testing.pref (pinning)
"o=Debian,n=testing,l=Debian,c=main";
// Also added further down:
// Unattended-Upgrade::Remove-Unused-Dependencies "true";
bengtfrost
 
Posts: 6
Joined: 2018-03-11 09:12

Re: Unattended upgrades - feedback

Postby bengtfrost » 2018-04-22 20:38

// New solution: added and outcommented following lines
"o=Debian,a=stable";
"o=Debian,a=stable-updates";
"o=Debian,a=proposed-updates";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
// Obsolete: Uncommented line above and added following:
// "o=Debian,n=stretch,l=Debian,c=main contrib non-free";
// "o=Debian,n=stretch-updates,l=Debian,c=main contrib non-free";
// "o=Debian,n=stretch,l=Debian-Security,c=main contrib non-free";

// Added papirus-icon-theme from testing repo
// see sources.list and preferences.d/testing.pref (pinning)
"o=Debian,a=testing";
// If backports - uncomment following line
// "o=Debian Backports,n=stable-backports,l=Debian Backports";
// Also added further down:
// Unattended-Upgrade::Remove-Unused-Dependencies "true";
bengtfrost
 
Posts: 6
Joined: 2018-03-11 09:12

Re: Unattended upgrades - feedback

Postby bengtfrost » 2018-04-22 20:45

Typo error should be stable-proposed-updates:

// New solution: added and outcommented following lines
"o=Debian,a=stable";
"o=Debian,a=stable-updates";
"o=Debian,a=stable-proposed-updates";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
// Obsolete: Uncommented line above and added following:
// "o=Debian,n=stretch,l=Debian,c=main contrib non-free";
// "o=Debian,n=stretch-updates,l=Debian,c=main contrib non-free";
// "o=Debian,n=stretch,l=Debian-Security,c=main contrib non-free";

// Added papirus-icon-theme from testing repo
// see sources.list and preferences.d/testing.pref (pinning)
"o=Debian,a=testing";
// If backports - uncomment following line
// "o=Debian Backports,n=stable-backports,l=Debian Backports";
// Also added further down:
// Unattended-Upgrade::Remove-Unused-Dependencies "true";
bengtfrost
 
Posts: 6
Joined: 2018-03-11 09:12

Re: Unattended upgrades - feedback

Postby bengtfrost » 2018-05-19 17:52

// New solution: added and outcommented following lines
"o=Debian,a=stable";
"o=Debian,a=stable-updates";
// Note: packages in stable-proposed-updates aren't yet officially part of Debian Stable
// "o=Debian,a=stable-proposed-updates";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
// Obsolete: Uncommented line above and added following:
// "o=Debian,n=stretch,l=Debian,c=main contrib non-free";
// "o=Debian,n=stretch-updates,l=Debian,c=main contrib non-free";
// "o=Debian,n=stretch,l=Debian-Security,c=main contrib non-free";

// Added papirus-icon-theme from testing repo
// see sources.list and preferences.d/testing.pref (pinning)
"o=Debian,a=testing";
// If backports - uncomment following line
// "o=Debian Backports,n=stable-backports,l=Debian Backports";
// Also added further down:
// Unattended-Upgrade::Remove-Unused-Dependencies "true";
bengtfrost
 
Posts: 6
Joined: 2018-03-11 09:12

Re: Unattended upgrades - feedback

Postby Wheelerof4te » 2018-05-19 18:00

Firts, learn to use
Code: Select all
code tags

Second, don't mess with testing repos on a Stable system.
Third, you need to explain what exactly are you trying to accomplish here.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: Unattended upgrades - feedback

Postby bengtfrost » 2018-05-20 07:51

Ok, I use code format instead next time, thank you!

What i am doing is unattended upgrades for Debian stable, stable-updates, security upgrades and Debian testing in (50unattended-upgrades) and then activate (1) update and upgrade in 20auto-upgrades file.

I have also downpinned (/etc/apt/preferences.d/testing.pref) testing repository to 50 and only using it for papirus-icon-theme.
bengtfrost
 
Posts: 6
Joined: 2018-03-11 09:12

Re: Unattended upgrades - feedback

Postby Wheelerof4te » 2018-05-20 08:27

If you know what you are doing, then everything will go well. But there is no need to add testing repo just for one icon theme. There are other ways to do it, and there are other good-looking themes that won't brick you system.
That said, I don't see the point of enabling auto-upgrades for Stable. Usually, there are maybe 10 upgraded packages in total per week.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14

Re: Unattended upgrades - feedback

Postby bengtfrost » 2018-05-20 10:40

Unattended upgrades is not for my machines (using CLI instead). I am doing for a beginner friend that never update-upgrade her system.

I know you can install 3rd party icon themes in many ways, but I want to do it the Debian "way (icon theme is also not in backport archive), and my way is safe for icon theme :)
bengtfrost
 
Posts: 6
Joined: 2018-03-11 09:12

Re: Unattended upgrades - feedback

Postby Wheelerof4te » 2018-05-20 11:10

As the saying goes: "Give a man fish, and he will eat for a day. Teach him to catch fish, and he will eat for a lifetime."

Especially for Stable, it takes no more than 5 minutes to teach someone how to upgrade his/her computer by himself. You just have to set up repos and do the initial configs, as it's the only hard part.
User avatar
Wheelerof4te
 
Posts: 1134
Joined: 2015-08-30 20:14


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable