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) ...
You may refer to this page for more information regarding Debian repositories in Artifactory.