Ive been having a problem downloading the latest plex media server version from the official plex repository. Here is a snippet of the error I am getting when running an “apt update”
Err:5 https://downloads.plex.tv/repo/deb public/main amd64 Packages
File has unexpected size (1696 != 1772). Mirror sync in progress? [IP: 104.18.156.41 443]
root@ubuntu:/etc/apt/sources.list.d# dpkg -l | grep -i plexmedia
ii plexmediaserver 1.21.3.4046-3c1c83ba4 amd64 Plex organizes all of your personal media so you can easily access and enjoy it.
root@ubuntu:/etc/apt/sources.list.d# apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 https://downloads.plex.tv/repo/deb public InRelease [6,685 B]
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 https://downloads.plex.tv/repo/deb public/main amd64 Packages [1,696 B]
Fetched 90.4 kB in 1s (123 kB/s)
Reading package lists... Done
root@ubuntu:/etc/apt/sources.list.d# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-137 linux-headers-4.15.0-137-generic linux-image-4.15.0-137-generic linux-modules-4.15.0-137-generic
linux-modules-extra-4.15.0-137-generic
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
plexmediaserver
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 86.8 MB of archives.
After this operation, 13.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://downloads.plex.tv/repo/deb public/main amd64 plexmediaserver amd64 1.22.3.4392-d7c624def [86.8 MB]
Fetched 86.8 MB in 1s (65.7 MB/s)
(Reading database ... 201006 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.22.3.4392-d7c624def_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.22.3.4392-d7c624def) over (1.21.3.4046-3c1c83ba4) ...
Setting up plexmediaserver (1.22.3.4392-d7c624def) ...
PlexMediaServer install: PlexMediaServer-1.22.3.4392-d7c624def - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Intel QSV Hardware: Not found
PlexMediaServer install: Nvidia GPU card: Not Found
PlexMediaServer install:
PlexMediaServer install: OpenCL library: Installed
PlexMediaServer install: Beignet package: Installed
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.22.3.4392-d7c624def - Installation successful. Errors: 0, Warnings: 0
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
root@ubuntu:/etc/apt/sources.list.d#
Well it seems like the issue has resolved itself. Thank you for the reply and checking things out on your end.
I swear the InRelease file had a different size listed for Packages.xz. Well, at least it did yesterday and from the particular server I was downloading it from lol. I wasn’t just trusting the apt error message, I downloaded the files manually from a separate Windows 10 pc and verified the discrepancy.
I haven’t changed anything in my configuration and now everything is working. Giving me your geolocation was a helpful reminder if I needed to continue troubleshooting. I wasn’t thinking about different mirrors at the time, so I didn’t try any troubleshooting using that angle. Not sure how many exist, but downloads.plex.tv resolves to multiple different servers across the United States. I’m in the midwest and perhaps there was a temporary issue with a particular server there.