← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1886491] Re: Applying package profile on Xenial doesn't work

 

It looks like python-apt (1.1.0~beta1ubuntu0.16.04.7) created a regression and elects to ignore
Acquire::AllowInsecureRepositories in favor of APT::Get::AllowUnauthenticated.

The simpler approach would likely be to backport the [trusted=true] fix
we've got working with later releases, instead of trying anything
related to the global apt config.

** Also affects: landscape-client (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: landscape-client (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: landscape-client (Ubuntu Xenial)
       Status: New => Confirmed

** No longer affects: landscape-client

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1886491

Title:
  Applying package profile on Xenial doesn't work

Status in landscape-client package in Ubuntu:
  New
Status in landscape-client source package in Xenial:
  Confirmed

Bug description:
  [Impact]

   * Users trying to apply changes to package profiles through landscape
  will get an error in the activity. This will result in incomplete apt
  source list on those clients.

  [Test Case]
   * install landscape-server-quickstart and landscape-api
   * Create a package profile "minimum packages" and add basic packages (byobu, vim, ubuntu-cloud-keyring). Enable for all computers
   * create a xenial container or machine and install/configure landscape-client

  Note that the apply package profile gets stuck and doesn't progress.
  On the container that was created, running apt update shows:

  sudo apt update
  Get:1 file:/var/lib/landscape/client/package/binaries ./ InRelease
  Ign:1 file:/var/lib/landscape/client/package/binaries ./ InRelease
  Get:2 file:/var/lib/landscape/client/package/binaries ./ Release
  Err:2 file:/var/lib/landscape/client/package/binaries ./ Release
    File not found - /var/lib/landscape/client/package/binaries/./Release (2: No such file or directory)
  Get:3 http://mirror/ubuntu xenial InRelease [247 kB]
  Hit:4 http://mirror/ubuntu xenial-updates InRelease
  Hit:5 http://mirror/ubuntu xenial-backports InRelease
  Hit:6 http://mirror/ubuntu xenial-security InRelease
  Reading package lists... Done
  E: The repository 'file:/var/lib/landscape/client/package/binaries ./ 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.

  apt-cache policy landscape-client
  landscape-client:
    Installed: 16.03-0ubuntu2.16.04.7
    Candidate: 16.03-0ubuntu2.16.04.7
    Version table:
   *** 16.03-0ubuntu2.16.04.7 500
          500 http://mirror/ubuntu xenial-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       16.03-0ubuntu2 500
          500 http://mirror/ubuntu xenial/main amd64 Packages

  This can be easily worked around by:
   * Remove the file /etc/apt/sources.list.d/_landscape-internal-facade.list
   * add-apt-repository ppa:landscape/19.01
   * apt install landscape-client

  apt-cache policy landscape-client
  landscape-client:
    Installed: 18.03~1070~git.8e52e1d~ubuntu16.04.1
    Candidate: 18.03~1070~git.8e52e1d~ubuntu16.04.1
    Version table:
   *** 18.03~1070~git.8e52e1d~ubuntu16.04.1 500
          500 http://ppa.launchpad.net/landscape/19.01/ubuntu xenial/main amd64 Packages
          100 /var/lib/dpkg/status
       16.03-0ubuntu2.16.04.7 500
          500 http://mirror.glacier.dev/ubuntu xenial-updates/main amd64 Packages
       16.03-0ubuntu2 500
          500 http://mirror.glacier.dev/ubuntu xenial/main amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1886491/+subscriptions