Project

Profile

Help

Issue #9239

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

Added by wilful 2 months ago. Updated about 2 months ago.

Status:
NEW
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

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?

History

#1 Updated by quba42 2 months 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."

#2 Updated by ajsween about 2 months 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.

#3 Updated by quba42 about 2 months 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.

#4 Updated by ajsween about 2 months ago

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

Please register to edit this issue

Also available in: Atom PDF