Debian Package Configuration

Repository URL Migration

Use case: Migration of Debian repositories from direct sources to an OSA Proxy server.

The following table summarizes the redirection of repository URLs for Debian. Please note that the format of the deb or deb-src repository lines (distribution, components) remains unchanged; only the base repository URL changes.

SourceURL in sources.list before migrationURL in sources.list after migrationapplication.yml apt.repository.registry
Nexushttps://nexus.host.ru/repository/debian-grouphttps://{osa-proxy-url}/nexus-debianhttps://nexus.host.ru/repository/debian-group
Artifactoryhttps://jfrog.host.ru/artifactory/debian-virtualhttps://{osa-proxy-url}/jfrog-debianhttps://jfrog.host.ru/artifactory/debian-virtual
Official Debianhttps://deb.debian.org/debian/https://{osa-proxy-url}/inet-debianhttp://deb.debian.org/debian/

APT Repository Migration

Original file /etc/apt/sources.list or /etc/apt/sources.list.d/*.list:

Types: deb
URIs: https://deb.debian.org/debian
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

The following repository definition needs to be added to the service's YAML configuration (the application.yml file) in the debian section. The service must be restarted for the changes to take effect.

Configuration in application.yml file

debian:
  enabled: true
  repository:
    - name: debian-apt
      scan-package: true
      distro: bullseye
      registry: http://deb.debian.org/debian/

After configuring the proxy server and adding it to application.yml, your sources.list will look like this:

Types: deb
URIs: https://{osa-proxy-url}/codescoring-debian
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Was this page helpful?