I want to install a package on 16.04 but it's available on the 14.04 repos only. How do I do that?
I know it would work in 16.04 because I actually have it on a 16.04 that was upgraded from a 14.04 and it's working fine.
I want to install a package on 16.04 but it's available on the 14.04 repos only. How do I do that?
I know it would work in 16.04 because I actually have it on a 16.04 that was upgraded from a 14.04 and it's working fine.
There are two cases:
If the application is found on apps.ubuntu.com, now renamed to snapcraft.io, then it's a "Snap" package that is independent of the version of Ubuntu you want to install it on. You can install it with the "Ubuntu-Software" application on Ubuntu 16.04 and later. Or alternatively from the command line as follows:
sudo snap install pycharm-community --classic
Snap packages are not real software packages, as they come with a redundant version of all kinds of dependencies, which makes them much larger. Also each Snap package uses its own ugly /var/lib/snapd/snaps/…
mountpoint, which will show up when listing mounted file systems with mount
, for example. So whenever a package is also available as a normal Ubuntu .deb
package, better proceed to the next option:
.deb
package from an earlier releaseIf the application is found with a search on packages.ubuntu.com, it's a real Ubuntu .deb
package. To install it in a distribution where it is not (yet) available, go to the package's page in the latest distribution where it is available (random example). Scroll down to the "Download [packagename]" table and click on the correct link in the "Architecture" column, which is usually the amd64
one. Save the file, and then install it in the command line as follows:
sudo apt update
sudo apt upgrade
sudo apt install ./packagename_[version]_amd64.deb
This will automatically install all dependencies as long as they are available in your own release of Ubuntu, which is often the case. The ./
in the command above, or a full path to the file, is important because otherwise apt
would look for the package in the repository, where it's not found for your release in this case.
(As for Sweeper 3D, it seems the package was simply pulled from the Snap repository, perhaps by the author himself. It is no longer available for any Ubuntu distribution.)
trusty
to a low score (less than 500): http://askubuntu.com/a/103338/158442, but I think it won't be necessary when using an older repo. – muru Feb 28 '17 at 04:53