jbuszkie@ubuntu:~$ ./installsage.sh ========= SageTV Autoinstall ======== ========= Determine Linux Version ======== OS appears to be Ubuntu: Ubuntu 16.04.1 LTS Press any key to continue, install will auto resume in 5 seconds ========= System Updates ======== Check for and get OS updates apt-get update (quiet) [sudo] password for jbuszkie: W: The repository 'cdrom://Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial Release' does not have a Release file. E: Failed to fetch cdrom://Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)/dists/xenial/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs E: Some index files failed to download. They have been ignored, or old ones used instead. apt-get upgrade (quiet) (Reading database ... 89690 files and directories currently installed.) Preparing to unpack .../fuse_2.9.4-1ubuntu3.1_amd64.deb ... Unpacking fuse (2.9.4-1ubuntu3.1) over (2.9.4-1ubuntu3) ... Preparing to unpack .../libfuse2_2.9.4-1ubuntu3.1_amd64.deb ... Unpacking libfuse2:amd64 (2.9.4-1ubuntu3.1) over (2.9.4-1ubuntu3) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ... Setting up libfuse2:amd64 (2.9.4-1ubuntu3.1) ... Setting up fuse (2.9.4-1ubuntu3.1) ... update-initramfs: deferring update (trigger activated) Processing triggers for libc-bin (2.23-0ubuntu3) ... Processing triggers for initramfs-tools (0.122ubuntu8.1) ... update-initramfs: Generating /boot/initrd.img-4.4.0-31-generic W: --force-yes is deprecated, use one of the options starting with --allow instead. apt-get dist-upgrade (quiet) apt-get autoclean (quiet) Press any key to continue, install will auto resume in 5 secondseth0: error fetching interface information: Device not found eth0: error fetching interface information: Device not found ========= System Network Settings ======== IP = NETMASK = GATEWAY = 192.168.64.2 Press any key to continue, install will auto resume in 5 seconds ========= Install Java 8 ======== Add the Java Repository sudo: add-apt-repository: command not found Do an update to know what is in repository (quiet) W: The repository 'cdrom://Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719) xenial Release' does not have a Release file. E: Failed to fetch cdrom://Ubuntu-Server 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)/dists/xenial/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs E: Some index files failed to download. They have been ignored, or old ones used instead. Install Java 8 Reading package lists... Done Building dependency tree Reading state information... Done Package oracle-java8-installer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'oracle-java8-installer' has no installation candidate Press any key to continue, install will auto resume in 5 seconds ========= Download SageTV .deb ======== --2016-08-03 11:10:53-- https://bintray.com/artifact/download/opensagetv/sagetv/sagetv/9.0.4.287/sagetv-server_9.0.4_amd64.deb Resolving bintray.com (bintray.com)... 75.126.118.184, 108.168.194.93 Connecting to bintray.com (bintray.com)|75.126.118.184|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://dl.bintray.com/opensagetv/sagetv/sagetv/9.0.4.287/sagetv-server_9.0.4_amd64.deb [following] --2016-08-03 11:10:54-- https://dl.bintray.com/opensagetv/sagetv/sagetv/9.0.4.287/sagetv-server_9.0.4_amd64.deb Resolving dl.bintray.com (dl.bintray.com)... 108.168.243.150, 75.126.118.188 Connecting to dl.bintray.com (dl.bintray.com)|108.168.243.150|:443... connected. HTTP request sent, awaiting response... 302 Location: https://akamai.bintray.com/f3/f36b81fc160997ef7b631f27e74267c6591472a6e4a69e1ae395bc0accfd85b3?__gda__=exp=1470248574~hmac=0122b0b815710db4055a6f208319bf6bb72ae228ec04a675fc6ae94ee1999fb1&response-content-disposition=attachment%3Bfilename%3D%22sagetv-server_9.0.4_amd64.deb%22&response-content-type=application%2Foctet-stream [following] --2016-08-03 11:10:54-- https://akamai.bintray.com/f3/f36b81fc160997ef7b631f27e74267c6591472a6e4a69e1ae395bc0accfd85b3?__gda__=exp=1470248574~hmac=0122b0b815710db4055a6f208319bf6bb72ae228ec04a675fc6ae94ee1999fb1&response-content-disposition=attachment%3Bfilename%3D%22sagetv-server_9.0.4_amd64.deb%22&response-content-type=application%2Foctet-stream Resolving akamai.bintray.com (akamai.bintray.com)... 23.32.185.87 Connecting to akamai.bintray.com (akamai.bintray.com)|23.32.185.87|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 23501466 (22M) [application/octet-stream] Saving to: âsagetv-server_9.0.4_amd64.debâ sagetv-server_9.0.4_amd64.d 100%[==========================================>] 22.41M 2.66MB/s in 8.5s 2016-08-03 11:11:03 (2.65 MB/s) - âsagetv-server_9.0.4_amd64.debâ saved [23501466/23501466] ========= Install SageTV .deb ======== Selecting previously unselected package sagetv-server. (Reading database ... 89690 files and directories currently installed.) Preparing to unpack sagetv-server_9.0.4_amd64.deb ... Unpacking sagetv-server (9.0.4) ... Setting up sagetv-server (9.0.4) ... Processing triggers for systemd (229-4ubuntu7) ... Processing triggers for ureadahead (0.100.0-19) ... Press any key to continue, install will auto resume in 5 seconds ========= Add Firewall Entries ======== Rules updated Rules updated (v6) Rules updated Rules updated (v6) Rules updated Rules updated (v6) Rules updated Rules updated (v6) Rules updated Rules updated (v6) Rules updated Rules updated (v6) Rules updated Rules updated (v6) Rules updated Rules updated (v6) Rules updated Rules updated (v6) Press any key to continue, install will auto resume in 5 seconds ========= Installing OpenDCT ========= ========= Download OpenDCT .deb Beta ======== --2016-08-03 11:12:33-- https://bintray.com/opendct/Beta/download_file?file_path=releases%2F0.5.7%2Fopendct_0.5.7-1_amd64.deb Resolving bintray.com (bintray.com)... 108.168.194.93, 75.126.118.184 Connecting to bintray.com (bintray.com)|108.168.194.93|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://dl.bintray.com/opendct/Beta/releases/0.5.7/opendct_0.5.7-1_amd64.deb [following] --2016-08-03 11:12:33-- https://dl.bintray.com/opendct/Beta/releases/0.5.7/opendct_0.5.7-1_amd64.deb Resolving dl.bintray.com (dl.bintray.com)... 75.126.118.188, 108.168.243.150 Connecting to dl.bintray.com (dl.bintray.com)|75.126.118.188|:443... connected. HTTP request sent, awaiting response... 302 Location: https://akamai.bintray.com/21/2140c188241ea021258ec69a3f24c3fffbdd41f0e567bae403c108f70400bcb1?__gda__=exp=1470248673~hmac=57c3747adc790731d94f5967bf959875a0cde0cdb882d4efa83797975f588495&response-content-disposition=attachment%3Bfilename%3D%22opendct_0.5.7-1_amd64.deb%22&response-content-type=application%2Foctet-stream [following] --2016-08-03 11:12:33-- https://akamai.bintray.com/21/2140c188241ea021258ec69a3f24c3fffbdd41f0e567bae403c108f70400bcb1?__gda__=exp=1470248673~hmac=57c3747adc790731d94f5967bf959875a0cde0cdb882d4efa83797975f588495&response-content-disposition=attachment%3Bfilename%3D%22opendct_0.5.7-1_amd64.deb%22&response-content-type=application%2Foctet-stream Resolving akamai.bintray.com (akamai.bintray.com)... 23.32.185.87 Connecting to akamai.bintray.com (akamai.bintray.com)|23.32.185.87|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 32968754 (31M) [application/octet-stream] Saving to: âopendct_0.5.7-1_amd64.debâ opendct_0.5.7-1_amd64.deb 100%[==========================================>] 31.44M 2.59MB/s in 12s 2016-08-03 11:12:46 (2.56 MB/s) - âopendct_0.5.7-1_amd64.debâ saved [32968754/32968754] ========= Install OpenDCT .deb Beta ======== Selecting previously unselected package opendct. (Reading database ... 91202 files and directories currently installed.) Preparing to unpack opendct_0.5.7-1_amd64.deb ... ERROR: A version of Java >= 1.7 must be installed before installing this package. The following command should fix this error: apt-get install default-jre-headless dpkg: error processing archive opendct_0.5.7-1_amd64.deb (--install): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: opendct_0.5.7-1_amd64.deb ========= Update OpenDCT Firewall Rules ======== Rules updated Rules updated (v6) Rules updated Rules updated (v6) Skipping adding existing rule Skipping adding existing rule (v6) Skipping adding existing rule Skipping adding existing rule (v6) ========= OpenDCT First Run (~30 seconds) ======== Failed to stop opendct.service: Unit opendct.service not loaded. Waiting for opendct service to stopsudo: /opt/opendct/console-only: command not found Press any key to continue, install will auto resume in 5 seconds ========= Update Sage for Network Encoders ======== ========= Validate discovery port ======== grep: /opt/sagetv/server/Sage.properties: No such file or directory Adding network encoder port to Sage.properties file ./installsage.sh: line 271: /opt/sagetv/server/Sage.properties: Permission denied ./installsage.sh: line 272: /opt/sagetv/server/Sage.properties: Permission denied grep: /opt/sagetv/server/Sage.properties: No such file or directory Sage.properties - encoding_discovery_port= Press any key to continue, install will auto resume in 5 seconds ========= Validate Encoder Discovery ======== sed: can't read /opt/sagetv/server/Sage.properties: No such file or directory grep: /opt/sagetv/server/Sage.properties: No such file or directory Adding network discovery to Sage.properties file ./installsage.sh: line 300: /opt/sagetv/server/Sage.properties: Permission denied ./installsage.sh: line 301: /opt/sagetv/server/Sage.properties: Permission denied grep: /opt/sagetv/server/Sage.properties: No such file or directory Sage.properties - network_encoder_discovery= Press any key to continue, install will auto resume in 5 seconds ========= Ensure OpenDCT auto starts at boot ======== update-rc.d: error: initscript does not exist: /etc/init.d/opendct ========= Start OpenDCT Service ======== Failed to start opendct.service: Unit opendct.service not found. ========= Start SageTV Service ========