Add Origin and Source to apt repo

server-linux

#1

I'm trying to enable ubuntu automatic updates for plex but the apt repo is missing the Origin and Source tags.
See https://help.ubuntu.com/lts/serverguide/automatic-updates.html and https://askubuntu.com/questions/87849/how-to-enable-silent-automatic-updates-for-any-repository

This is what /var/lib/apt/lists/downloads.plex.tv_repo_deb_dists_public_main_binary-amd64_Packages looks like

Package: plexmediaserver
 Version: 1.8.4.4249-3497d6779
 Architecture: amd64
 Maintainer: Plex Inc <support@plex.tv>
 Installed-Size: 229192
 Filename: pool/p/plexmediaserver/plexmediaserver_1.8.4.4249-3497d6779_amd64.deb
 Size: 107625306
 MD5sum: eea890baf444532811c10e75296d40fe
 SHA1: 022430f88e5196d543140d5e7e64b88b3fc33216
 SHA256: a578196cef34734858e365957dcaa12fc48b11ba1c30a8a39b5ba4b1c916fe8a
 Section: video
 Priority: extra
 Homepage: https://plex.tv
 Description: Plex organizes all of your personal media so you can easily access and enjoy it.

If the Origin and Source tags could be added that would be awesome.

Thanks


#2

https://support.plex.tv/hc/en-us/articles/235974187-Enable-repository-updating-for-supported-Linux-server-distributions


#3

@ChuckPA said:
https://support.plex.tv/hc/en-us/articles/235974187-Enable-repository-updating-for-supported-Linux-server-distributions

This article doesn’t address the op’s concern. To enable automatic upgrades in Ubuntu (upgrades which don’t require user interaction), a file needs to be updated with repository origin:archive pairs to allow automatic upgrades from said repository, otherwise the upgrades are ignored until the user manually requests the upgrade.

In this case, the file https://downloads.plex.tv/repo/deb/dists/public/InRelease is missing Origin and Suite. Adding these two fields should allow Ubuntu unattended-upgrades to proceed correctly.

Some examples:

http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease
Origin: Ubuntu
Label: Ubuntu
Suite: xenial
Version: 16.04
Codename: xenial
Date: Thu, 21 Apr 2016 23:23:46 UTC
Architectures: amd64 arm64 armhf i386 powerpc ppc64el s390x
Components: main restricted universe multiverse
Description: Ubuntu Xenial 16.04

https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/dists/xenial/InRelease
Origin: packages.gitlab.com/gitlab/gitlab-ce
Label: gitlab-ce
Date: Tue, 28 Nov 2017 11:02:32 +0000
Suite: xenial
Codename: xenial
Version: 1
Components: main
Architectures: amd64 armel armhf i386 ia64 mips mipsel powerpc ppc64el s390 s390x sparc alpha avr32 hppa m32 m68k sh arm64
Description: APT/YUM repository for GitLab Community Edition packages
Acquire-By-Hash: yes


#4

+1 to what jiffe@ said. Can the Origin be set to something like Plex and the Suite to stable?


#5

With it now public that we’re overhauling how we build binaries, I will see what can be done


#6

FWIW, in later versions of Ubuntu/Debian, unattended-upgrades has a feature that allows this (specifically, those after 0.70, see this commit).

Add the following to /etc/apt/apt.conf.d/50unattended-upgrades.

Unattended-Upgrade::Origins-Pattern {
        // Plex!
        "site=downloads.plex.tv,component=main";
};

Note this is not the same as Unattended-Upgrade::Allowed-Origins - don’t change that!