unable to update PE2017.3 on ubuntu 16.04

asked 2017-12-01 05:55:24 -0600

ashish gravatar image

updated 2017-12-12 08:07:19 -0600

I have Puppet Enterprise 2017.3 installed and working but when updating Ubuntu 16.04 it fail at

Get:8 file:/opt/puppetlabs/server/data/packages/public/2017.3.0/ubuntu-16.04-amd64-5.3.2 ./ Packages [6,638 B] Reading package lists... Done W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/optpuppetlabsserverdatapackagespublic2017.3.0ubuntu-16.04-amd64-5.3.2.Release

I've tried to delete the file /var/lib/apt/lists/partial/optpuppetlabsserverdatapackagespublic2017.3.0ubuntu-16.04-amd64-5.3.2.Release but doesn't help.

Any ideas on how to fix?

Thanks

Update to the above

ok so I have found out why this is occurring. If there is no Date specified in UTC format it will not update and fail at the same file with the same warning.

It appears that the release file (optpuppetlabsserverdatapackagespublic2017.3.2ubuntu-16.04-amd64-5.3.3.Release) in /var/opt/apt/lists/partial doesn't have UTC date element. I've tried adding it before doing apt-get but it overwrites my changes.

This is what I have in the file after doing an apt-get update:

Origin: Puppetlabs Label: Puppet Enterprise Codename: xenial Components: Architectures: i386 amd64 all

But it requires the date element: Date: Mon, 11 Dec 2017 11:23:46 UTC

So the file in partial should have something like the below.

Origin: Puppetlabs Label: Puppet Enterprise Codename: xenial Date: Mon, 11 Dec 2017 11:23:46 UTC Components: Architectures: i386 amd64 all

Can someone please confirm if this is correct.

Thanks

edit retag flag offensive close merge delete