The instructions on the QGIS download site are not as intuitive as I'd like, but they do work when you know the command syntax:
First, what version of Debian Linux (Ubuntu / Mint) are you running?
The Ubuntu Codename of your APT repository will depend on the version of the OS and which version of QGIS you can run.
QGIS 3.10/14 will run on Ubuntu 20.04 (focal) and Linux Mint 20 (focal) and above.
You can run this command to get your DISTRIB_CODENAME:
cat /etc/upstream-release/lsb-release
Add links to QGIS repositories
# Replace 'codename' with your ubuntu version codename:
sudo add-apt-repository "deb https://qgis.org/debian codename main"
Add keys:
wget -qO - https://qgis.org/downloads/qgis-2020.gpg.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import
sudo chmod a+r /etc/apt/trusted.gpg.d/qgis-archive.gpg
Install QGIS
sudo apt-get update && sudo apt-get install qgis python-qgis
Notes:
- Keys last updated 08/12/2020
- Please leave a comment if you notice they need updating again, and I will update this answer
- The original QGIS instruction details are here