Add Origin and Source to apt repo



I'm trying to enable ubuntu automatic updates for plex but the apt repo is missing the Origin and Source tags.
See and

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

Package: plexmediaserver
 Architecture: amd64
 Maintainer: Plex Inc <>
 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
 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.




@ChuckPA said:

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 is missing Origin and Suite. Adding these two fields should allow Ubuntu unattended-upgrades to proceed correctly.

Some examples:
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
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


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


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


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!

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