set up details:
-
private Debian server
-
Artifact registry repo APT format
-
subnet is enables with Private Google Access
-
service account is provided with administrator access to Artifact registry
-
server given with full access to all cloud api access
https://cloud.google.com/artifact-registry/docs/os-packages/debian/configure#prepare-apt
i am following the above article to download the deb files from standard Artifact registry repo
please find the below sample cmds i followed
- created a repo named: quickstart-apt-repo
- Downloaded a sample Deb file in cloud shell : apt download apt-dpkg-ref
- Set default repo in cloud shell: gcloud config set artifacts/repository quickstart-apt-repo
- Set default location to : gcloud config set artifacts/location asia-south1
- Run the gcloud artifacts apt upload to upload the package to the repository:
gcloud artifacts apt upload quickstart-apt-repo --source=apt-dpkg-ref_5.3.2_all.deb - Create a Debian VM.
- Run gcloud init to initialize the Google Cloud CLI on your VM.
- Update Apt: sudo apt update
- Install the Apt credential helper on the VM to enable Apt to perform authentication: sudo apt install apt-transport-artifact-registry
- check permissions of service account attached to the VM which sholud have editor access to Artifactory registry
- Configure your VM to access Artifact Registry packages using the following command: echo ‘deb ar+https://asia-south1-apt.pkg.dev/projects/xyz-ami-automation quickstart-apt-repo main’ | sudo tee -a /etc/apt/sources.list.d/artifact-registry.list
- Update Apt: sudo apt update
After the above update cmd i ended up with this error
Please help how to resolve this error
