I tried to install apache2 with
sudo apt-get install apache2
Why am i seeing this
E: Type 'gpg' is not known on line 1 in source list /etc/apt/sources.list.d/sublime-text.list
E: Type 'gpg' is not known on line 1 in source list /etc/apt/sources.list.d/sublime-text.list
cp
in first command.The second command removed first line from /etc/apt/sources.list.d/sublime-text.list . The conntent of this file was incorrect, so apt was not able to correctly install apache. Try removing the file, and then execute apt update ; apt install apache2
– Paweł Michalski Jul 21 '18 at 13:03