gpg error

yea it is taking awhile.
58 Replies
Linux123123
Linux1231234y ago
failed so
sudo add-apt-repository -k hkp://pool.sks-keyservers.net:80 ppa:ondrej/php
sudo add-apt-repository -k hkp://pool.sks-keyservers.net:80 ppa:ondrej/php
@Ir0nW0lfe
Ir0nW0lfe
Ir0nW0lfeOP4y ago
i believe this one is doing the same.. but ill give it a little.. same thing.
Linux123123
Linux1231234y ago
What does this give cat /etc/resolv.conf
Ir0nW0lfe
Ir0nW0lfeOP4y ago
nameserver 213.186.33.99
Linux123123
Linux1231234y ago
So that is your dns server
Ir0nW0lfe
Ir0nW0lfeOP4y ago
so is that what i should be using? (i am new to this ubuntu stuff)
Linux123123
Linux1231234y ago
It is alright, but we can try changing it nano /etc/resolv.conf remove everything and paste
nameserver 8.8.8.8
nameserver 8.8.8.8
Ir0nW0lfe
Ir0nW0lfeOP4y ago
how do i remove?
Linux123123
Linux1231234y ago
what?
Ir0nW0lfe
Ir0nW0lfeOP4y ago
you said remove everything nvm k i pasted that 1
Linux123123
Linux1231234y ago
then ctrl + o and ctrl + x Then apt update
Ir0nW0lfe
Ir0nW0lfeOP4y ago
k done, 6 packages can be upgraded. Run 'apt list --upgradable' to see them.
Linux123123
Linux1231234y ago
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/php
same?
Ir0nW0lfe
Ir0nW0lfeOP4y ago
yup same
Linux123123
Linux1231234y ago
Do you have a firewall?
Ir0nW0lfe
Ir0nW0lfeOP4y ago
i believe so, we tried disabling it before but always got same issues.
Linux123123
Linux1231234y ago
Is it only input, or also output that is being blocked
Ir0nW0lfe
Ir0nW0lfeOP4y ago
not sure, how do i check? so it came back..
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or Ctrl-c to cancel adding it.
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Linux123123
Linux1231234y ago
Enter
Ir0nW0lfe
Ir0nW0lfeOP4y ago
that gives me another space
Linux123123
Linux1231234y ago
I guess wait
Ir0nW0lfe
Ir0nW0lfeOP4y ago
Error: retrieving gpg key timed out.
Linux123123
Linux1231234y ago
Ok let's try something different then
Ir0nW0lfe
Ir0nW0lfeOP4y ago
k
Linux123123
Linux1231234y ago
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 4f4ea0aae5267a6c
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 4f4ea0aae5267a6c
one line
Ir0nW0lfe
Ir0nW0lfeOP4y ago
k that worked
Linux123123
Linux1231234y ago
gpg --export --armor 4f4ea0aae5267a6c | sudo apt-key add -
gpg --export --armor 4f4ea0aae5267a6c | sudo apt-key add -
Ir0nW0lfe
Ir0nW0lfeOP4y ago
it said OK
Linux123123
Linux1231234y ago
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/php
Ir0nW0lfe
Ir0nW0lfeOP4y ago
loading........ is it because im in root and still entering sudo?
Linux123123
Linux1231234y ago
Doesn't really matter
Ir0nW0lfe
Ir0nW0lfeOP4y ago
okay cool.. still loading
Linux123123
Linux1231234y ago
It might fail, but it would still be ok
Ir0nW0lfe
Ir0nW0lfeOP4y ago
k the enter thing, then error timeout
Linux123123
Linux1231234y ago
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
And apt update
Ir0nW0lfe
Ir0nW0lfeOP4y ago
done but there was one error in there..
E: The repository 'https://packages.sury.org/php focal 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. the rest loaded though
Linux123123
Linux1231234y ago
rm -rf /etc/apt/sources.list.d/php.list
rm -rf /etc/apt/sources.list.d/php.list
Ir0nW0lfe
Ir0nW0lfeOP4y ago
didnt look like it did anything but next
Linux123123
Linux1231234y ago
Yeah good Does this work?
add-apt-repository ppa:ondrej/php --allow-unauthenticated
add-apt-repository ppa:ondrej/php --allow-unauthenticated
Ir0nW0lfe
Ir0nW0lfeOP4y ago
root@ns541440:/home/ubuntu# add-apt-repository ppa:ondrej/php --allow-unauthenticated
Usage: add-apt-repository <sourceline>

add-apt-repository is a script for adding apt sources.list entries.
It can be used to add any repository and also provides a shorthand
syntax for adding a Launchpad PPA (Personal Package Archive)
repository.

<sourceline> - The apt repository source line to add. This is one of:
a complete apt line in quotes,
a repo url and areas in quotes (areas defaults to 'main')
a PPA shortcut.
a distro component

Examples:
apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'
apt-add-repository 'http://myserver/path/to/repo myrepo'
apt-add-repository 'https://packages.medibuntu.org free non-free'
apt-add-repository http://extras.ubuntu.com/ubuntu
apt-add-repository ppa:user/repository
apt-add-repository ppa:user/distro/repository
apt-add-repository multiverse

If --remove is given the tool will remove the given sourceline from your
sources.list


add-apt-repository: error: no such option: --allow-unauthenticated
root@ns541440:/home/ubuntu# add-apt-repository ppa:ondrej/php --allow-unauthenticated
Usage: add-apt-repository <sourceline>

add-apt-repository is a script for adding apt sources.list entries.
It can be used to add any repository and also provides a shorthand
syntax for adding a Launchpad PPA (Personal Package Archive)
repository.

<sourceline> - The apt repository source line to add. This is one of:
a complete apt line in quotes,
a repo url and areas in quotes (areas defaults to 'main')
a PPA shortcut.
a distro component

Examples:
apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'
apt-add-repository 'http://myserver/path/to/repo myrepo'
apt-add-repository 'https://packages.medibuntu.org free non-free'
apt-add-repository http://extras.ubuntu.com/ubuntu
apt-add-repository ppa:user/repository
apt-add-repository ppa:user/distro/repository
apt-add-repository multiverse

If --remove is given the tool will remove the given sourceline from your
sources.list


add-apt-repository: error: no such option: --allow-unauthenticated
so i did something and have no idea what i did, but as i copied all of that, I accidentally R-clicked and it loaded a bunch of stuff..
Linux123123
Linux1231234y ago
Nah it's alright
Ir0nW0lfe
Ir0nW0lfeOP4y ago
k
Linux123123
Linux1231234y ago
Do you have the ability to connect threw a vpn and try from a different IP? I saw that some ISP's can block
Ir0nW0lfe
Ir0nW0lfeOP4y ago
not that i am aware of.
Linux123123
Linux1231234y ago
I am basically out of ideas. Can you use debian?
Ir0nW0lfe
Ir0nW0lfeOP4y ago
i have no idea what that is. like i mentioned im new to all this stuff but willing to try.
Linux123123
Linux1231234y ago
Debian is a distro like Ubuntu
Ir0nW0lfe
Ir0nW0lfeOP4y ago
oh, um i believe our OP is Ubuntu, so I doubt it but not sure..
Linux123123
Linux1231234y ago
Can't you install other OS's?
Ir0nW0lfe
Ir0nW0lfeOP4y ago
yeah, so debian 10, 11, 9 are all options, as well as linux and a few others.
Linux123123
Linux1231234y ago
11
Ir0nW0lfe
Ir0nW0lfeOP4y ago
now I do have another hosting ip that is with the same provider, that one worked perfectly, but it was on ubuntu 18.04, it seems like the 20.04 is the one giving issues.. is it possible to do the 18.04 and just upgrade through updates to 20.04?
Linux123123
Linux1231234y ago
Uhhmm Not really Like yes infiary, but that isn't really good Like you can stay on 18.04 That would work
Ir0nW0lfe
Ir0nW0lfeOP4y ago
poop. okay what I may do is attempt to get my buddy to try, just incase it is an internet issue. but what is the difference between 18.04 and 20.04?
Linux123123
Linux1231234y ago
20.04 newer, but nothing is "worse" in 18.04
Ir0nW0lfe
Ir0nW0lfeOP4y ago
oh okay. i will attempt to see if it is legit my connection. if my partner cant do it, then if it is okay ill come back and attempt the debian?
Linux123123
Linux1231234y ago
sure
Ir0nW0lfe
Ir0nW0lfeOP4y ago
Thank you for everything today.

Did you find this page helpful?