Closed johnmichaellien closed 5 years ago
Note, I believe I have resolved the issue by adding the following to my sources.list
deb [trusted=yes] http://nexus:8081/repository/test/snapshots/test trusty main
afterwards I perform a
apt-get --allow-unauthenticated update
The distribution (trusty) is in the settings of the repo when it is created and can be accessed in admin mode. I used the recommended choice of "trusty" but it can be set to whatever you want. I need to add the [trusted=yes] because I'm getting the following when I do an "apt-get update" I get the following error
W: GPG error: http://nexus:8081/repository/test/snapshots/test trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED213EB450CEB0D7
If anyone knows how to resolve the new issue I'm running into that would be most appreciated.
So I was able to resolve this issue via the following
rm /etc/apt/sources.list
echo deb [url] trusty main >> /etc/apt/sources.list
rm -f /var/lib/apt/lists/*
apt-get update
apt-get install gnupg
apt-key add
apt-key add
I've recently setup a fresh nexus service using this apt plugin on a AWS Ubuntu instance. I'm able to upload my deb files and perform snapshots. According to the documentation on the git website, I should be able to use the snapshots as an apt repo that I can add to my /etc/apt/sources.list.
deb http://nexus/repository/test-apt/snapshots/test bionic main
I've tried various links in my /etc/apt/sources.list, but after performing an apt-get update I get something similar to the following:
Err:5 http://nexus/repository/test-apt/snapshots/test bionic Release 404 Not Found [The IP Address>] Hit:6 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Reading package lists... Done E: The repository 'http://nexus/repository/test-apt/snapshots/test bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. root@ip-172-31-41-26:~# vim /etc/apt/sources.list
Are there more specific instructions with how to pull deb packages from nexus once they are uploaded?