Download the repository key using the wget command and import it with the apt-key command:<\/p>\n
# wget -qO- https:\/\/download.owncloud.org\/download\/repositories\/stable\/Ubuntu_16.04\/Release.key | sudo apt-key add -\nOK\n<\/pre>\nMake sure apt-transport-https is installed as we are going to need it for the next step:<\/p>\n
# sudo apt-get install apt-transport-https\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nThe following packages were automatically installed and are no longer required:\n aspell aspell-en dictionaries-common emacsen-common libaspell15 libexttextcat-2.0-0 libexttextcat-data liblua5.1-0 libyajl2\nUse 'apt autoremove' to remove them.\nThe following NEW packages will be installed:\n apt-transport-https\n0 upgraded, 1 newly installed, 0 to remove and 54 not upgraded.\nNeed to get 26.1 kB of archives.\nAfter this operation, 215 kB of additional disk space will be used.\nGet:1 http:\/\/archive.ubuntu.com\/ubuntu xenial-updates\/main amd64 apt-transport-https amd64 1.2.26 [26.1 kB]\nFetched 26.1 kB in 0s (60.8 kB\/s)\nSelecting previously unselected package apt-transport-https.\n(Reading database ... 35616 files and directories currently installed.)\nPreparing to unpack ...\/apt-transport-https_1.2.26_amd64.deb ...\nUnpacking apt-transport-https (1.2.26) ...\nSetting up apt-transport-https (1.2.26) ...\n<\/pre>\nCreate a owncloud.list file in \/etc\/apt\/sources.list.d so we can add the ownCloud repository to the server:<\/p>\n
# echo 'deb https:\/\/download.owncloud.org\/download\/repositories\/stable\/Ubuntu_16.04\/ \/' | sudo tee \/etc\/apt\/sources.list.d\/owncloud.list\ndeb https:\/\/download.owncloud.org\/download\/repositories\/stable\/Ubuntu_16.04\/ \/\n<\/pre>\nNow update the system packages again so we can install the ownCloud packages:<\/p>\n
# sudo apt-get update\nHit:1 http:\/\/archive.ubuntu.com\/ubuntu xenial InRelease\nHit:2 http:\/\/archive.ubuntu.com\/ubuntu xenial-updates InRelease\nHit:3 http:\/\/archive.canonical.com\/ubuntu xenial InRelease\nHit:4 http:\/\/security.ubuntu.com\/ubuntu xenial-security InRelease\nIgn:5 https:\/\/download.owncloud.org\/download\/repositories\/stable\/Ubuntu_16.04 InRelease\nGet:6 https:\/\/download.owncloud.org\/download\/repositories\/stable\/Ubuntu_16.04 Release [986 B]\nGet:7 https:\/\/download.owncloud.org\/download\/repositories\/stable\/Ubuntu_16.04 Release.gpg [481 B]\nGet:8 https:\/\/download.owncloud.org\/download\/repositories\/stable\/Ubuntu_16.04 Packages [736 B]\nFetched 2203 B in 2s (1030 B\/s)\nReading package lists... Done\n<\/pre>\nInstall ownCloud by executing the following command:<\/p>\n
# sudo apt-get install owncloud-files\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nThe following NEW packages will be installed:\n owncloud-files\n0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.\nNeed to get 0 B\/35.1 MB of archives.\nAfter this operation, 118 MB of additional disk space will be used.\nSelecting previously unselected package owncloud-files.\n(Reading database ... 35869 files and directories currently installed.)\nPreparing to unpack ...\/owncloud-files_10.0.7-1.1_all.deb ...\nUnpacking owncloud-files (10.0.7-1.1) ...\nSetting up owncloud-files (10.0.7-1.1) ...\n<\/pre>\nWe can proceed to the next step now.<\/p>\n