Install erlang to Ubuntu 18.04 LTS

qwfys200發表於2018-10-26

Install erlang to Ubuntu 18.04 LTS

1. Add Signing Key

wget -O - "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc" | sudo apt-key add -

2. Add Source List File

sudo sh -c 'echo "deb http://dl.bintray.com/rabbitmq/debian bionic erlang" >> /etc/apt/sources.list.d/erlang.list'

3. Update

sudo apt update

4. Install

lwk@qwfys:~$ sudo apt install erlang
[sudo] password for ubuntu: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  emacsen-common erlang-asn1 erlang-base erlang-common-test erlang-crypto erlang-debugger erlang-dev erlang-dialyzer erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-et erlang-eunit erlang-examples erlang-inets
  erlang-jinterface erlang-megaco erlang-mnesia erlang-mode erlang-observer erlang-odbc erlang-os-mon erlang-parsetools erlang-public-key erlang-reltool erlang-runtime-tools erlang-snmp erlang-src erlang-ssh erlang-ssl
  erlang-syntax-tools erlang-tools erlang-wx erlang-xmerl javascript-common libglu1-mesa libjs-jquery libjs-jquery-metadata libjs-jquery-tablesorter libodbc1
Suggested packages:
  erlang-manpages erlang-doc xsltproc fop libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
  emacsen-common erlang erlang-asn1 erlang-base erlang-common-test erlang-crypto erlang-debugger erlang-dev erlang-dialyzer erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-et erlang-eunit erlang-examples erlang-inets
  erlang-jinterface erlang-megaco erlang-mnesia erlang-mode erlang-observer erlang-odbc erlang-os-mon erlang-parsetools erlang-public-key erlang-reltool erlang-runtime-tools erlang-snmp erlang-src erlang-ssh erlang-ssl
  erlang-syntax-tools erlang-tools erlang-wx erlang-xmerl javascript-common libglu1-mesa libjs-jquery libjs-jquery-metadata libjs-jquery-tablesorter libodbc1
0 upgraded, 42 newly installed, 0 to remove and 10 not upgraded.
Need to get 21.6 MB/36.9 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-inets amd64 1:21.1.1-1 [611 kB]
Get:2 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-et amd64 1:21.1.1-1 [177 kB]                                                                                                                                          
Get:3 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-observer amd64 1:21.1.1-1 [872 kB]                                                                                                                                    
Get:4 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-snmp amd64 1:21.1.1-1 [1564 kB]                                                                                                                                       
Get:5 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-ssh amd64 1:21.1.1-1 [662 kB]                                                                                                                                         
Get:6 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-syntax-tools amd64 1:21.1.1-1 [377 kB]                                                                                                                                
Get:7 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-tools amd64 1:21.1.1-1 [526 kB]                                                                                                                                       
Get:8 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-xmerl amd64 1:21.1.1-1 [994 kB]                                                                                                                                       
Get:9 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-common-test amd64 1:21.1.1-1 [1062 kB]                                                                                                                                
Get:10 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-dialyzer amd64 1:21.1.1-1 [704 kB]                                                                                                                                   
Get:11 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-diameter amd64 1:21.1.1-1 [677 kB]                                                                                                                                   
Get:12 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-edoc amd64 1:21.1.1-1 [314 kB]                                                                                                                                       
Get:13 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-eldap amd64 1:21.1.1-1 [132 kB]                                                                                                                                      
Get:14 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-erl-docgen amd64 1:21.1.1-1 [152 kB]                                                                                                                                 
Get:15 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-eunit amd64 1:21.1.1-1 [166 kB]                                                                                                                                      
Get:16 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-megaco amd64 1:21.1.1-1 [5484 kB]                                                                                                                                    
Get:17 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-odbc amd64 1:21.1.1-1 [78.2 kB]                                                                                                                                      
Get:18 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-os-mon amd64 1:21.1.1-1 [123 kB]                                                                                                                                     
Get:19 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-parsetools amd64 1:21.1.1-1 [183 kB]                                                                                                                                 
Get:20 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-reltool amd64 1:21.1.1-1 [360 kB]                                                                                                                                    
Get:21 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang all 1:21.1.1-1 [36.0 kB]                                                                                                                                             
Get:22 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-examples all 1:21.1.1-1 [937 kB]                                                                                                                                     
Get:23 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-jinterface all 1:21.1.1-1 [129 kB]                                                                                                                                   
Get:24 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-mode all 1:21.1.1-1 [108 kB]                                                                                                                                         
Get:25 http://dl.bintray.com/rabbitmq/debian bionic/erlang amd64 erlang-src all 1:21.1.1-1 [5159 kB]                                                                                                                                         
Fetched 21.6 MB in 12min 2s (29.9 kB/s)                                                                                                                                                                                                      
Extracting templates from packages: 100%
Selecting previously unselected package emacsen-common.
(Reading database ... 204688 files and directories currently installed.)
Preparing to unpack .../00-emacsen-common_2.0.8_all.deb ...
Unpacking emacsen-common (2.0.8) ...
Selecting previously unselected package erlang-base.
Preparing to unpack .../01-erlang-base_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-base (1:21.1.1-1) ...
Selecting previously unselected package erlang-dev.
Preparing to unpack .../02-erlang-dev_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-dev (1:21.1.1-1) ...
Selecting previously unselected package erlang-asn1.
Preparing to unpack .../03-erlang-asn1_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-asn1 (1:21.1.1-1) ...
Selecting previously unselected package erlang-crypto.
Preparing to unpack .../04-erlang-crypto_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-crypto (1:21.1.1-1) ...
Selecting previously unselected package libglu1-mesa:amd64.
Preparing to unpack .../05-libglu1-mesa_9.0.0-2.1build1_amd64.deb ...
Unpacking libglu1-mesa:amd64 (9.0.0-2.1build1) ...
Selecting previously unselected package erlang-wx.
Preparing to unpack .../06-erlang-wx_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-wx (1:21.1.1-1) ...
Selecting previously unselected package erlang-debugger.
Preparing to unpack .../07-erlang-debugger_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-debugger (1:21.1.1-1) ...
Selecting previously unselected package erlang-mnesia.
Preparing to unpack .../08-erlang-mnesia_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-mnesia (1:21.1.1-1) ...
Selecting previously unselected package erlang-runtime-tools.
Preparing to unpack .../09-erlang-runtime-tools_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-runtime-tools (1:21.1.1-1) ...
Selecting previously unselected package erlang-public-key.
Preparing to unpack .../10-erlang-public-key_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-public-key (1:21.1.1-1) ...
Selecting previously unselected package erlang-ssl.
Preparing to unpack .../11-erlang-ssl_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-ssl (1:21.1.1-1) ...
Selecting previously unselected package erlang-inets.
Preparing to unpack .../12-erlang-inets_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-inets (1:21.1.1-1) ...
Selecting previously unselected package erlang-et.
Preparing to unpack .../13-erlang-et_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-et (1:21.1.1-1) ...
Selecting previously unselected package erlang-observer.
Preparing to unpack .../14-erlang-observer_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-observer (1:21.1.1-1) ...
Selecting previously unselected package erlang-snmp.
Preparing to unpack .../15-erlang-snmp_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-snmp (1:21.1.1-1) ...
Selecting previously unselected package erlang-ssh.
Preparing to unpack .../16-erlang-ssh_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-ssh (1:21.1.1-1) ...
Selecting previously unselected package erlang-syntax-tools.
Preparing to unpack .../17-erlang-syntax-tools_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-syntax-tools (1:21.1.1-1) ...
Selecting previously unselected package erlang-tools.
Preparing to unpack .../18-erlang-tools_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-tools (1:21.1.1-1) ...
Selecting previously unselected package erlang-xmerl.
Preparing to unpack .../19-erlang-xmerl_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-xmerl (1:21.1.1-1) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../20-libjs-jquery_3.2.1-1_all.deb ...
Unpacking libjs-jquery (3.2.1-1) ...
Selecting previously unselected package libjs-jquery-metadata.
Preparing to unpack .../21-libjs-jquery-metadata_12-1_all.deb ...
Unpacking libjs-jquery-metadata (12-1) ...
Selecting previously unselected package libjs-jquery-tablesorter.
Preparing to unpack .../22-libjs-jquery-tablesorter_1%3a2.29.5+dfsg1-1_all.deb ...
Unpacking libjs-jquery-tablesorter (1:2.29.5+dfsg1-1) ...
Selecting previously unselected package erlang-common-test.
Preparing to unpack .../23-erlang-common-test_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-common-test (1:21.1.1-1) ...
Selecting previously unselected package erlang-dialyzer.
Preparing to unpack .../24-erlang-dialyzer_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-dialyzer (1:21.1.1-1) ...
Selecting previously unselected package erlang-diameter.
Preparing to unpack .../25-erlang-diameter_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-diameter (1:21.1.1-1) ...
Selecting previously unselected package erlang-edoc.
Preparing to unpack .../26-erlang-edoc_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-edoc (1:21.1.1-1) ...
Selecting previously unselected package erlang-eldap.
Preparing to unpack .../27-erlang-eldap_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-eldap (1:21.1.1-1) ...
Selecting previously unselected package erlang-erl-docgen.
Preparing to unpack .../28-erlang-erl-docgen_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-erl-docgen (1:21.1.1-1) ...
Selecting previously unselected package erlang-eunit.
Preparing to unpack .../29-erlang-eunit_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-eunit (1:21.1.1-1) ...
Selecting previously unselected package erlang-megaco.
Preparing to unpack .../30-erlang-megaco_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-megaco (1:21.1.1-1) ...
Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../31-libodbc1_2.3.4-1.1ubuntu3_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.4-1.1ubuntu3) ...
Selecting previously unselected package erlang-odbc.
Preparing to unpack .../32-erlang-odbc_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-odbc (1:21.1.1-1) ...
Selecting previously unselected package erlang-os-mon.
Preparing to unpack .../33-erlang-os-mon_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-os-mon (1:21.1.1-1) ...
Selecting previously unselected package erlang-parsetools.
Preparing to unpack .../34-erlang-parsetools_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-parsetools (1:21.1.1-1) ...
Selecting previously unselected package erlang-reltool.
Preparing to unpack .../35-erlang-reltool_1%3a21.1.1-1_amd64.deb ...
Unpacking erlang-reltool (1:21.1.1-1) ...
Selecting previously unselected package erlang.
Preparing to unpack .../36-erlang_1%3a21.1.1-1_all.deb ...
Unpacking erlang (1:21.1.1-1) ...
Selecting previously unselected package erlang-examples.
Preparing to unpack .../37-erlang-examples_1%3a21.1.1-1_all.deb ...
Unpacking erlang-examples (1:21.1.1-1) ...
Selecting previously unselected package erlang-jinterface.
Preparing to unpack .../38-erlang-jinterface_1%3a21.1.1-1_all.deb ...
Unpacking erlang-jinterface (1:21.1.1-1) ...
Selecting previously unselected package erlang-mode.
Preparing to unpack .../39-erlang-mode_1%3a21.1.1-1_all.deb ...
Unpacking erlang-mode (1:21.1.1-1) ...
Selecting previously unselected package erlang-src.
Preparing to unpack .../40-erlang-src_1%3a21.1.1-1_all.deb ...
Unpacking erlang-src (1:21.1.1-1) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../41-javascript-common_11_all.deb ...
Unpacking javascript-common (11) ...
Setting up libjs-jquery (3.2.1-1) ...
Setting up libodbc1:amd64 (2.3.4-1.1ubuntu3) ...
Setting up erlang-base (1:21.1.1-1) ...
Searching for services which depend on erlang and should be started...none found.
Setting up erlang-dev (1:21.1.1-1) ...
Setting up emacsen-common (2.0.8) ...
Setting up erlang-examples (1:21.1.1-1) ...
Setting up erlang-xmerl (1:21.1.1-1) ...
Setting up erlang-crypto (1:21.1.1-1) ...
Setting up erlang-asn1 (1:21.1.1-1) ...
Setting up erlang-mnesia (1:21.1.1-1) ...
Setting up erlang-eunit (1:21.1.1-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up erlang-jinterface (1:21.1.1-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up libglu1-mesa:amd64 (9.0.0-2.1build1) ...
Setting up erlang-runtime-tools (1:21.1.1-1) ...
Setting up erlang-syntax-tools (1:21.1.1-1) ...
Setting up javascript-common (11) ...
Setting up erlang-odbc (1:21.1.1-1) ...
Setting up libjs-jquery-metadata (12-1) ...
Setting up erlang-dialyzer (1:21.1.1-1) ...
Setting up erlang-parsetools (1:21.1.1-1) ...
Setting up erlang-megaco (1:21.1.1-1) ...
Setting up erlang-wx (1:21.1.1-1) ...
Setting up erlang-src (1:21.1.1-1) ...
Setting up libjs-jquery-tablesorter (1:2.29.5+dfsg1-1) ...
Setting up erlang-mode (1:21.1.1-1) ...
Setting up erlang-public-key (1:21.1.1-1) ...
Setting up erlang-snmp (1:21.1.1-1) ...
Setting up erlang-ssl (1:21.1.1-1) ...
Setting up erlang-debugger (1:21.1.1-1) ...
Setting up erlang-inets (1:21.1.1-1) ...
Setting up erlang-tools (1:21.1.1-1) ...
Setting up erlang-reltool (1:21.1.1-1) ...
Setting up erlang-et (1:21.1.1-1) ...
Setting up erlang-observer (1:21.1.1-1) ...
Setting up erlang-diameter (1:21.1.1-1) ...
Setting up erlang-ssh (1:21.1.1-1) ...
Setting up erlang-os-mon (1:21.1.1-1) ...
Setting up erlang-eldap (1:21.1.1-1) ...
Setting up erlang-edoc (1:21.1.1-1) ...
Setting up erlang-common-test (1:21.1.1-1) ...
Setting up erlang-erl-docgen (1:21.1.1-1) ...
Setting up erlang (1:21.1.1-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
ubuntu@ecs8000:~$ 

Renfernce

相關文章