aptitude install lsb-release &&
wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb &&
dpkg -i mysql-apt-config_0.6.0-1_all.deb
aptitude update &&
aptitude install mysql-community-server
aptitude install lsb-release &&
wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb &&
dpkg -i mysql-apt-config_0.6.0-1_all.deb
aptitude update &&
aptitude install mysql-community-server
The aptitude update
step can now produce the error:
GPG error: http://repo.mysql.com jessie InRelease: The following signatures were invalid: KEYEXPIRED 1487236823 KEYEXPIRED 1487236823 KEYEXPIRED 1487236823
You can fix it with the command:
apt-get install dirmngr
apt-key adv --keyserver pgp.mit.edu --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5