Project

Profile

Help

Issue #9239

closed

Add support for Ubuntu comand-not-found (CNF) indices

Added by wilful about 1 year ago. Updated 9 months ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulp_deb/419":https://github.com/pulp/pulp_deb/issues/419


Hi! I trying create mirror for official ubuntu repository: http://archive.ubuntu.com/ubuntu/ After creation on my test Ubuntu server i see error:

/pulp/content/archive.ubuntu.com/dists/focal/main/cnf/Commands-amd64: 404  Not Found [IP: 172.24.160.15 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

It content (CNF) have in source but not in my repository I use verbatim publisher, on_demand policy

      "pulp_href": "/pulp/api/v3/remotes/deb/apt/25c10483-64e2-492a-ac30-6efb5bbe3683/",
      "pulp_created": "2021-08-13T13:58:19.364006Z",
      "name": "archive.ubuntu.com",
      "url": "http://archive.ubuntu.com/ubuntu/",
      "ca_cert": null,
      "client_cert": null,
      "tls_validation": true,
      "proxy_url": null,
      "pulp_labels": {},
      "pulp_last_updated": "2021-08-13T13:58:19.364027Z",
      "download_concurrency": null,
      "max_retries": null,
      "policy": "on_demand",
      "total_timeout": null,
      "connect_timeout": null,
      "sock_connect_timeout": null,
      "sock_read_timeout": null,
      "headers": null,
      "rate_limit": null,
      "distributions": "trusty focal",
      "components": null,
      "architectures": "amd64",
      "sync_sources": false,
      "sync_udebs": false,
      "sync_installer": false,
      "gpgkey": null,
      "ignore_missing_package_indices": false
    },

Can i add it is cnf folder?

Actions #1

Updated by quba42 about 1 year ago

  • Subject changed from CNF not found in Ubuntu cloned repository to Add support for Ubuntu comand-not-found (CNF) indices

It looks like Commands-amd64 is a new type of metadata file used by Ubuntu repos, that pulp_deb does not currently support. (This is the first time I have heard of this type of file.)

As such, this ticket is essentially a feature request, and I have reformulated it as such!

Note: I have found the following statement regarding this feature: "Starting with Ubuntu Focal (20.04), the APT client expects APT sources to provide command-not-found (cnf) metadata files."

Actions #2

Updated by ajsween about 1 year ago

There are three different meta data types not being sync’d as of Ubuntu 20.04:

  • cnf - command-not-found (apt purge command-not-found will remove this)
  • i11n - translation files (echo ‘Acquire::Languages "none";’ > /etc/apt.conf.d/99translations)
  • appstream - (apt purge appstream will remove but it disables installs from GUI app store)

I included how to work around if you are okay with forgoing apt install recommendations with cnf, translation files with i11n, and App Store installs with appstream.

Actions #3

Updated by quba42 about 1 year ago

There is a open issue for translation files: https://pulp.plan.io/issues/8734

I will have a look at the other type you mentioned.

Actions #4

Updated by ajsween about 1 year ago

appstream is the “DEP-11” folder in main for Ubuntu Focal Fossa.

Actions #5

Updated by mgoddard 11 months ago

Also hitting this issue. Is there a timeframe for implementation?

Actions #6

Updated by quba42 11 months ago

  • Sprint/Milestone set to Katello
Actions #7

Updated by quba42 11 months ago

mgoddard wrote:

Also hitting this issue. Is there a timeframe for implementation?

No timeframe as of yet I am afraid. I will throw this ticket into our internal triage and see what happens.

As I understand this is just a Warning, so the workaround is to ignore the issue and carry on without CNF indices.

Actions #8

Updated by pulpbot 9 months ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF