Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEB repo on ubuntu should not point to debian #277

Closed
jkroepke opened this issue Oct 13, 2018 · 2 comments
Closed

DEB repo on ubuntu should not point to debian #277

jkroepke opened this issue Oct 13, 2018 · 2 comments

Comments

@jkroepke
Copy link
Contributor

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.0.2
  • Ruby:
  • Distribution: Ubuntu 18.04
  • Module version: 3.0.0

How to reproduce (e.g Puppet code you use)

include gitlab

What are you seeing

cat /etc/apt/sources.list.d/gitlab_official_ce.list
# Official repository for GitLab Omnibus
deb https://packages.gitlab.com/gitlab/gitlab-ce/debian bionic main

What behaviour did you expect instead

cat /etc/apt/sources.list.d/gitlab_official_ce.list
# Official repository for GitLab Omnibus
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic main

Output log

Any additional information you'd like to impart

Seeing this while upgrade the module to 3.0.0

Notice: /Stage[main]/Gitlab::Omnibus_package_repository/Apt::Source[gitlab_official_ce]/Apt::Setting[list-gitlab_official_ce]/File[/etc/apt/sources.list.d/gitlab_official_ce.list]/content:
--- /etc/apt/sources.list.d/gitlab_official_ce.list     2018-06-10 23:24:55.000000000 +0200
+++ /tmp/puppet-file20181013-9939-zso5lj        2018-10-13 18:44:21.000000000 +0200
@@ -1,4 +1,3 @@
 # This file is managed by Puppet. DO NOT EDIT.
-# Official repository for Gitlab
-deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ bionic main
-deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ bionic main
+# Official repository for GitLab Omnibus
+deb https://packages.gitlab.com/gitlab/gitlab-ce/debian bionic main

Notice: /Stage[main]/Gitlab::Omnibus_package_repository/Apt::Source[gitlab_official_ce]/Apt::Setting[list-gitlab_official_ce]/File[/etc/apt/sources.list.d/gitlab_official_ce.list]/content: current_value '{md5}56bb8259cb0c7c33ec4272ddc15ce629', should be '{md5}4381bb154bd6bece2012d14b34445842' (noop)
Info: /Stage[main]/Gitlab::Omnibus_package_repository/Apt::Source[gitlab_official_ce]/Apt::Setting[list-gitlab_official_ce]/File[/etc/apt/sources.list.d/gitlab_official_ce.list]: Scheduling refresh of Class[Apt::Update]

It also breaks apt update

# apt update
Hit:1 http://mirror.hetzner.de/ubuntu/packages bionic InRelease
Hit:2 http://mirror.hetzner.de/ubuntu/security bionic-security InRelease
Hit:3 http://mirror.hetzner.de/ubuntu/packages bionic-updates InRelease
Ign:4 http://apt.puppetlabs.com bionic InRelease
Hit:5 http://apt.puppetlabs.com bionic Release
Hit:7 https://packages.gitlab.com/runner/gitlab-runner/ubuntu bionic InRelease
Ign:8 https://packages.gitlab.com/gitlab/gitlab-ce/debian bionic InRelease
Err:9 https://packages.gitlab.com/gitlab/gitlab-ce/debian bionic Release
  404  Not Found [IP: 2a01:4f8:173:282c:eebf:1cb6:bdc2:e92 3128]
Reading package lists... Done
E: The repository 'https://packages.gitlab.com/gitlab/gitlab-ce/debian bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
@bastelfreak
Copy link
Member

@jkroepke thanks for bringing this up. Can you provide a patch for this?

@jkroepke
Copy link
Contributor Author

Yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants