sonatype-nexus-community / nexus-repository-apt

A Nexus Repository 3 plugin that allows usage of apt repositories
Eclipse Public License 1.0
105 stars 50 forks source link

problem during apt update #107

Open godfryd opened 5 years ago

godfryd commented 5 years ago

Hello,

I just started using Nexus and APT plugin. Nexus: 3.15.2-01 APT plugin: 1.0.10 I encountered a problem that apprears only sometimes.

I try to do: sudo apt update when there is a nexus apt repo in sources.list And then sometime I get such errors:

The repository 'http://nexus/repository/my-debian-9 main Release' does not have a Release file.

or

Ign:1 http://nexus/repository/my-debian-9 main InRelease
Err:2 http://nexus/repository/my-debian-9 main Release
  Unknown date format Bad header data

or

Err:1 http://nexus:8080/repository/my-ubuntu-18.04 main InRelease
  Unknown date format Bad header data [IP: xxx.xx.57.175 8080]

Any tips how to cope with that?

laurentL commented 5 years ago

Same issue on debian 10

mikakesan commented 5 years ago

We had this problem as well and had to modify the Last-Modified header setting it to blank in our nginx config. It looks like the date format is randomly changing between CET, CEST and GMT, which causes this error.

https://community.openhab.org/t/unable-to-update-2-0-snapshot-using-apt-or-apt-get/18754/2

bhamail commented 5 years ago

APT is now part of Nexus Repository Manager. Version 3.17.0 includes the APT plugin by default. If this is still an issue if using 3.17.0 or later please file an issue at https://issues.sonatype.org/. Links to the new source code location are in the top level README.md