ARTIFACTORY: How to configure ondrej Debian remote repository

AuthorFullName__c
Roja R M
articleNumber
000006022
FirstPublishedDate
2024-02-04T09:08:20Z
lastModifiedDate
2025-07-22

ARTIFACTORY: How to configure ondrej Debian remote repository

How to configure the ondrej Debian remote repository and resolve packages from Artifactory. 

Repository 1: For PPA:ondrej/apache2 packages.
1. Created a Debian remote repository pointing to http://ppa.launchpad.net/ondrej/apache2/ubuntu/ with all default settings. Perform test button verification, and save the repository settings.


2.  Add the GPG keys for the remote repository as mentioned in this link.

3. Added the below configuration to the /etc/apt/sources.list file from Set Me Up.

deb http://admin:<apikey>@localhost:8081/artifactory/debian-debian focal main


4. Performed ‘apt-get update’

5. Then try installing the packages as below and see if it got cached in Artifactory

$ apt-get install libapr1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libapr1
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 104 kB of archives.
After this operation, 297 kB of additional disk space will be used.
Get:1 http://localhost:8081/artifactory/debian-debian focal/main amd64 libapr1 amd64 1.7.2-2+ubuntu20.04.1+deb.sury.org+1 [104 kB]
Fetched 104 kB in 1s (89.6 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libapr1:amd64.
(Reading database ... 12487 files and directories currently installed.)
Preparing to unpack .../libapr1_1.7.2-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libapr1:amd64 (1.7.2-2+ubuntu20.04.1+deb.sury.org+1) ...
Setting up libapr1:amd64 (1.7.2-2+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) …
User-added image

Repository 2: PPA:ondrej/php packages

Similarly, try configuring “http://ppa.launchpad.net/ondrej/php/ubuntu/” as a remote url.
1. Created a Debian remote repository pointing to [ http://ppa.launchpad.net/ondrej/php/ubuntu/] with all default settings. Perform test button verification, and save the repository settings.

2. Add the GPG keys for the remote repository as mentioned in this link

3. Add the below configuration to the /etc/apt/sources.list file from the Set Me Up.
deb http://admin:<apikey>@localhost:8081/artifactory/debian-debian focal main

4. Performed ‘apt-get update’

5. Install the packages using the below command and verify if it got cached successfully.

$ apt-get install libargon2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libargon2-1
The following NEW packages will be installed:
  libargon2-1 libargon2-dev
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 43.6 kB of archives.
After this operation, 150 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://localhost:8081/artifactory/debian-debian focal/main amd64 libargon2-1 amd64 0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1 [19.5 kB]
Get:2 http://localhost:8081/artifactory/debian-debian focal/main amd64 libargon2-dev amd64 0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1 [24.1 kB]
Fetched 43.6 kB in 1s (40.7 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libargon2-1:amd64.
(Reading database ... 12482 files and directories currently installed.)
Preparing to unpack .../libargon2-1_0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libargon2-1:amd64 (0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package libargon2-dev:amd64.
Preparing to unpack .../libargon2-dev_0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libargon2-dev:amd64 (0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up libargon2-1:amd64 (0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1) ...
Setting up libargon2-dev:amd64 (0~20190702-0.1+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...


User-added image

You may refer to this page for more information regarding Debian repositories in Artifactory.