Nessuno di questi ha funzionato per me:
$ sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 5072E1F5
o
$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5
o
$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5
Le fonti per questi sono:
https://bugs.mysql.com/bug.php?id=85029 e https://bugs.mysql.com/bug.php?id=94378
Ho eseguito un'operazione sospetta in preda alla disperazione (dicendo 'y' invece di 'N' di seguito) che penso non fosse affatto richiesta:
$ sudo apt-get install mysql-apt-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
mysql-apt-config
1 upgraded, 0 newly installed, 0 to remove and 294 not upgraded.
Need to get 35.6 kB of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
mysql-apt-config
Install these packages without verification? [y/N] y
Get:1 http://repo.mysql.com/apt/ubuntu/ trusty/mysql-apt-config mysql-apt-config all 0.8.13-1 [35.6 kB]
Fetched 35.6 kB in 0s (229 kB/s)
Preconfiguring packages ...
dpkg-deb: error: archive '/var/cache/apt/archives/mysql-apt-config_0.8.13-1_all.deb' has premature member 'control.tar.xz' before 'contro
l.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/mysql-apt-config_0.8.13-1_all.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/mysql-apt-config_0.8.13-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
E seguito con:
$ sudo apt-get update
che non ha aiutato.
Ho ancora avuto lo stesso errore.
Infine, ha funzionato :
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5072E1F5
Sto ipotizzando (ciecamente) che forse pgp.mit.edu ha cambiato la loro struttura o forse "MySQL Release Engineering" (esegui apt-key list) ha spostato le loro chiavi sul server di chiavi Ubuntu o qualcosa del genere (non ho idea di come siano le chiavi mantenuto).
Questo commento sul thread duplicato dice la stessa cosa.
Spero che questo faccia risparmiare tempo e fatica a qualcuno.