[SOLVED] apt-get update gpg error 'NODATA'
Hello,
A couple of days ago, I went through updating a server. The server is mainly used as a Samba fileserver with OpenVPN access. Also Apache2, PHP and MySQL is installed, but mostly used for small tests.
At first, sudo apt update && sudo apt dist-upgrade ran successfully
I had at one time installed Owncloud (to test), but I haven't had the time to do anything about it, so I tried to uninstall it by running 'sudo apt remove owncloud'
The package could not be found
So, I ran "aptitude", found the package there, and removed it from there. Everything seemed to go as it should.
After this, I wanted to double check that everything was up to date, so I ran "sudo apt update" again. This time I got errors for all repositories, complaining about (e.g.)
E: GPG error: http://
I have gone through all forum discussion I can find, but nothing makes a difference.
To keep this message a bit shorter, this has been discussed at: https:/
At the moment, I have ran all command in step 7 on the page: https:/
Here is the a copy of the terminal output (just a bit stylized):
ubuntu-
Support status summary of '[server]':
You have 759 packages (100.0%) that can not/no longer be downloaded
You have 0 packages (0.0%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
-------
cat /etc/dpkg/
cat: /etc/dpkg/
-------
dpkg --print-
i386
-------
sudo grep -R roxy /etc/apt/*
[no feedback]
-------
grep roxy /etc/environment
[no feedback]
-------
echo $http_proxy
[empty feedback]
-------
echo $ftp_proxy
[empty feedback]
-------
grep roxy /etc/bash.bashrc
[no feedback]
-------
cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
-------
sudo fuser -vvv /var/lib/dpkg/lock
[no feedback]
-------
sudo fuser -vvv /var/cache/
[no feedback]
-------
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
-------
uname -a
Linux [servername] 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
-------
sudo rm /var/lib/
[no feedback]
-------
sudo rm /var/cache/
[no feedback]
-------
sudo rm /var/lib/dpkg/lock
[no feedback]
-------
sudo cp -arf /var/lib/dpkg /var/lib/
[no feedback]
-------
sudo mv /var/lib/
[no feedback]
-------
sudo cp /var/lib/
[no feedback]
-------
sudo mv /var/lib/
[no feedback]
-------
sudo cp /var/lib/
cp: cannot stat '/var/lib/
-------
sudo rm -rf /var/lib/
[no feedback]
-------
sudo rm -rf /var/lib/apt/lists
[no feedback]
-------
sudo rm /var/cache/
[no feedback]
-------
sudo mkdir /var/lib/apt/lists
[no feedback]
-------
sudo mkdir /var/lib/
[no feedback]
-------
LANG=C;sudo apt-get clean
[no feedback]
-------
LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
-------
sudo dpkg --configure -a
[no feedback]
-------
sudo dpkg --clear-avail
[no feedback]
-------
LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-------
LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-------
LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
-------
LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Get:1 http://
Get:2 http://
Err:1 http://
Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
Err:2 http://
Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
Get:3 http://
Err:3 http://
Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
Reading package lists... Done
E: GPG error: http://
E: GPG error: http://
E: GPG error: http://
-------
LANG=C;sudo apt-get update -o APT::Cache-
Get:1 http://
Get:2 http://
Err:1 http://
Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
Err:2 http://
Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
Get:3 http://
Err:3 http://
Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
Reading package lists... Done
E: GPG error: http://
E: GPG error: http://
E: GPG error: http://
-------
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 #
2
3 # deb cdrom:[
4
5 # deb cdrom:[
6
7 # See http://
8 # newer versions of the distribution.
9 deb http://
10 # deb-src http://
11
12 ## Major bug fix updates produced after the final release of the
13 ## distribution.
14 deb http://
15 # deb-src http://
16
17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
18 ## team. Also, please note that software in universe WILL NOT receive any
19 ## review or updates from the Ubuntu security team.
20 deb http://
21 # deb-src http://
22 deb http://
23 # deb-src http://
24
25 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
26 ## team, and may not be under a free licence. Please satisfy yourself as to
27 ## your rights to use the software. Also, please note that software in
28 ## multiverse WILL NOT receive any review or updates from the Ubuntu
29 ## security team.
30 deb http://
31 # deb-src http://
32 deb http://
33 # deb-src http://
34
35 ## N.B. software from this repository may not have been tested as
36 ## extensively as that contained in the main release, although it includes
37 ## newer versions of some applications which may provide useful features.
38 ## Also, please note that software in backports WILL NOT receive any review
39 ## or updates from the Ubuntu security team.
40 deb http://
41 # deb-src http://
42
43 ## Uncomment the following two lines to add software from Canonical's
44 ## 'partner' repository.
45 ## This software is not part of Ubuntu, but is offered by Canonical and the
46 ## respective vendors as a service to Ubuntu users.
47 # deb http://
48 # deb-src http://
49
50 deb http://
51 # deb-src http://
52 deb http://
53 # deb-src http://
54 deb http://
55 deb [arch=i386,
56 # deb-src [arch=i386,
57 # deb-src http://
58 # deb https:/
59 deb http://
60 # deb-src http://
61 # deb-src http://
62 deb http://
63 # deb-src http://
64 deb http://
65 # deb-src http://
66 # deb-src http://
67 # deb-src http://
/etc/apt/
1 #------
2 # OFFICIAL UBUNTU REPOS #
3 #------
4
5
6 ###### Ubuntu Main Repos
7 deb http://
8
9 ###### Ubuntu Update Repos
10 deb http://
11 deb http://
-------
sudo dpkg --audit
[no feedback]
I would be totally fine by just "resetting" apt-get to "factory settings". If I find I need special repositories, I can always add them in the future.
This is not that time sensitive, as I just updated the server, but I do like to keep it up to date, as it's connected to the web.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Sisu Star
- Solved:
- Last query:
- Last reply: