How to Install LibreOffice in Linux Ubuntu 18.04 Bionic Beaver

Posted on

Introduction on LibreOffice

This is a specific article about an installation process of LibreOffice. First of all, what is LibreOffice actually ?. According to the information in its official website in this link, LibreOffice is a powerful and free office suite. Millions of people around the world is currently using it. It has clean interface and feature-rich tools to help the user to unleash creativity and enhance productivity. LibreOffice includes several applications that make it the most versatile Free and Open Source office suite on the market. It has a Writer for word processing. It also has a Calc for doing spreadsheets. Furthermore, it has Impress to create presentations. Another applications such as Draw for drawing vector graphics and flowcharts. Last, it also has Base for databases and Math for formula editing.

Installation Steps of LibreOffice using an Additional Repository

In order to use LibreOffice, it is important to install it first. Below are steps for installing LibreOffice :

1. First of all, add the necessary repository. It is an important step. It defines the location of the libreoffice package for further installation. Just execute the following command :

root@hostname:~# sudo add-apt-repository ppa:libreoffice/ppa
 LibreOffice test builds and backports
This PPA will have what the Document Foundation calls "LibreOffice fresh", the latest release of the newest series (but no alpha/beta releases).
There is a PPA dedicated to specific LibreOffice major series which support a range of older Ubuntu releases too:
https://launchpad.net/~libreoffice/+archive/libreoffice-6-1 ("Fresh")
https://launchpad.net/~libreoffice/+archive/libreoffice-6-0 ("Still")
 (testbed for 18.04 LTS SRUs)
https://launchpad.net/~libreoffice/+archive/libreoffice-5-4 (EOL)
https://launchpad.net/~libreoffice/+archive/libreoffice-5-1 (EOL)
 (testbed for 16.04 LTS SRUs, EOL upstream)
https://launchpad.net/~libreoffice/+archive/libreoffice-4-2 (EOL)
 (testbed for 14.04 LTS SRUs, EOL upstream)
Alpha and beta releases of a new major releases and the first release candidate of minor updates can be found at:
https://launchpad.net/~libreoffice/+archive/libreoffice-prereleases
So much for other ppas.
Please file bugs for these packages on launchpad as described in:
https://lists.launchpad.net/libreoffice/msg00072.html
This PPA might contain the release candidate that is assumed to become the final release even before it is declared so by the Document Foundation (e.g. usually release candidate 2 for minor updates).
Most of the packages in this PPA have only experienced minor testing -- in fact it is the place to enable a wider audience to test packages before they are published into the distro proper. In general, this PPA is _not_ for the average user to install without a closer look (if it would be, its packages would be in the main repositories). OTOH, it is _way_ _better_ to use packages from this PPA than using the *.deb files that The Document Foundation provides upstream, which are intentionally build against a very old baseline for maximum compatibility. So, _if_ you want to be on the bleeding edge, do it here, not with upstream *.debs.
In general, users are advised to take a look at the changelog for the details about a package. If there is a specific bug that is intended to be addressed by an update released into the PPA, you are encouraged to test, if the update solves that problem. Packages published after the distro release are mostly such specific fixes. Critical fixes will be SRUed into the main repositories after testing anyway (later, with more testing).
To return to the LibreOffice version from the main archive, use ppa-purge. see: http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html for details
 More info: https://launchpad.net/~libreoffice/+archive/ubuntu/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release                                                                                                                                      
Ign:4 http://pkg.jenkins.io/debian-stable binary/ InRelease                                                                                                                                                
Hit:5 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu bionic InRelease                                                                                                                      
Hit:6 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic InRelease                                                                                                                                                 
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease                                                                                                                                            
Hit:8 http://pkg.jenkins.io/debian-stable binary/ Release                                                                                                                                                  
Get:11 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]                                                                                           
Hit:12 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease         
Get:13 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-updates InRelease [88,7 kB]                                       
Get:14 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-backports InRelease [74,6 kB]                                     
Hit:9 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic InRelease                                  
Fetched 247 kB in 3s (76,8 kB/s)
Reading package lists... Done
root@hostname:~#

2. Next step, execute the following command. It is a command to get the list update after adding a new repository. The following is the command :

root@hostname:~# apt-get update
Ign:1 http://pkg.jenkins.io/debian-stable binary/ InRelease                                                                                                                                                
Hit:2 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu bionic InRelease                                                                                                                                 
Hit:3 http://pkg.jenkins.io/debian-stable binary/ Release                                                                                                                                                  
Hit:6 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease                                                                                                                                     
Ign:7 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                               
Hit:8 http://dl.google.com/linux/chrome/deb stable Release                                                                                                                      
Hit:9 https://download.docker.com/linux/ubuntu bionic InRelease                                                        
Hit:5 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic InRelease                                         
Hit:11 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic InRelease                                    
Get:12 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-updates InRelease [88,7 kB]
Get:13 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-backports InRelease [74,6 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]                                                                                                                               
Fetched 247 kB in 7s (33,4 kB/s)                                                                                                                                                                           
Reading package lists... Done
root@hostname:~#

3. Apparently, somehow there is a need to upgrade the operating system. Skip this process if it is not necessary and go to the next step.

root@hostname:~# apt upgrade --fix-missing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libsmbclient libwbclient0 samba-libs
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 5.252 kB/5.340 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-updates/main amd64 samba-libs amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.4 [5.252 kB]                                                                             
Fetched 5.252 kB in 35s (149 kB/s)                                                                                                                                                                         
(Reading database ... 281098 files and directories currently installed.)
Preparing to unpack .../libsmbclient_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.4_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
Preparing to unpack .../samba-libs_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.4_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
Preparing to unpack .../libwbclient0_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.4_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
Setting up libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Setting up samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Setting up libsmbclient:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
root@hostname:~#

4. After the upgrade process, try to install the package. Don’t ever get the wrong package name. In early days, the package name is openoffice. But after that, the name has already changed into ‘libreoffice’.

root@hostname:~# apt -y install openoffice
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openoffice
root@hostname:~#

5. Move on, carry out the next process. Execute the following command for installing ‘libreoffice’ :

root@hostname:~# apt -y install libreoffice
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  default-jre fonts-crosextra-caladea fonts-crosextra-carlito fonts-dejavu fonts-dejavu-extra fonts-linuxlibertine fonts-sil-gentium fonts-sil-gentium-basic libabw-0.1-1 libatk-wrapper-java
  libatk-wrapper-java-jni libbsh-java libcommons-logging-java libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 libhsqldb1.8.0-java libmhash2 libmwaw-0.3-3 libmythes-1.2-0 libneon27-gnutls
  liborcus-0.13-0 libpagemaker-0.0-0 libraptor2-0 librasqal3 librdf0 libreoffice-avmedia-backend-gstreamer libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc
  libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-java-common libreoffice-librelogo libreoffice-math libreoffice-nlpsolver
  libreoffice-ogltrans libreoffice-report-builder libreoffice-report-builder-bin libreoffice-script-provider-bsh libreoffice-script-provider-js libreoffice-script-provider-python libreoffice-sdbc-hsqldb
  libreoffice-sdbc-postgresql libreoffice-style-colibre libreoffice-style-elementary libreoffice-style-tango libreoffice-wiki-publisher libreoffice-writer libservlet3.1-java openjdk-11-jre python3-uno
  uno-libs3 ure
Suggested packages:
  default-java-plugin libavalon-framework-java libcommons-logging-java-doc libexcalibur-logkit-java liblog4j1.2-java java-virtual-machine libhsqldb1.8.0-java-gcj raptor2-utils rasqal-utils
  librdf-storage-postgresql librdf-storage-mysql librdf-storage-sqlite librdf-storage-virtuoso redland-utils fonts-noto-hinted gpa hyphen-hyphenation-patterns libreoffice-grammarcheck libreoffice-help
  libreoffice-l10n myspell-dictionary mythes-thesaurus openclipart2-libreoffice | openclipart-libreoffice pstoedit unixodbc gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
  libreoffice-officebean libjtds-java libreoffice-mysql-connector | libmyodbc | libmysql-java libsqliteodbc | tdsodbc | mdbtools libreoffice-sdbc-firebird libreoffice-evolution libreofficekit-data
  postgresql tango-icon-theme mediawiki
The following NEW packages will be installed:
  default-jre fonts-crosextra-caladea fonts-crosextra-carlito fonts-dejavu fonts-dejavu-extra fonts-linuxlibertine fonts-sil-gentium fonts-sil-gentium-basic libabw-0.1-1 libatk-wrapper-java
  libatk-wrapper-java-jni libbsh-java libcommons-logging-java libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 libhsqldb1.8.0-java libmhash2 libmwaw-0.3-3 libmythes-1.2-0 libneon27-gnutls
  liborcus-0.13-0 libpagemaker-0.0-0 libraptor2-0 librasqal3 librdf0 libreoffice libreoffice-avmedia-backend-gstreamer libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc
  libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-java-common libreoffice-librelogo libreoffice-math libreoffice-nlpsolver
  libreoffice-ogltrans libreoffice-report-builder libreoffice-report-builder-bin libreoffice-script-provider-bsh libreoffice-script-provider-js libreoffice-script-provider-python libreoffice-sdbc-hsqldb
  libreoffice-sdbc-postgresql libreoffice-style-colibre libreoffice-style-elementary libreoffice-style-tango libreoffice-wiki-publisher libreoffice-writer libservlet3.1-java openjdk-11-jre python3-uno
  uno-libs3 ure
0 upgraded, 60 newly installed, 0 to remove and 0 not upgraded.
Need to get 115 MB of archives.
After this operation, 376 MB of additional disk space will be used.
Get:1 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libmhash2 amd64 0.9.9.9-7 [87,0 kB]
Get:2 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-updates/main amd64 openjdk-11-jre amd64 10.0.2+13-1ubuntu0.18.04.3 [53,2 kB]
Get:3 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 default-jre amd64 2:1.10-63ubuntu1~02 [1.092 B]
Get:4 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 fonts-crosextra-caladea all 20130214-2 [82,4 kB]
Get:5 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-style-colibre all 1:6.1.3~rc2-0ubuntu0.18.04.2 [965 kB]                                                                
Get:6 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 fonts-crosextra-carlito all 20130920-1 [742 kB]                                                                                            
Get:7 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-style-tango all 1:6.1.3~rc2-0ubuntu0.18.04.2 [1.198 kB]                                                                
Get:8 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 fonts-dejavu-extra all 2.37-1 [1.953 kB]
Get:9 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 fonts-dejavu all 2.37-1 [3.130 B]                                                                                                          
Get:10 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 uno-libs3 amd64 6.1.3~rc2-0ubuntu0.18.04.2 [909 kB]                                                                               
Get:11 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 fonts-linuxlibertine all 5.3.0-4 [1.627 kB]                                                                                               
Get:12 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 fonts-sil-gentium all 20081126:1.03-2 [245 kB]                                                                                            
Get:13 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 fonts-sil-gentium-basic all 1.102-1 [384 kB]                                                                                              
Get:14 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 ure amd64 6.1.3~rc2-0ubuntu0.18.04.2 [1.749 kB]                                                                                   
Get:15 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libabw-0.1-1 amd64 0.1.2-1ubuntu1 [104 kB]                                                                                                    
Get:16 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libatk-wrapper-java all 0.33.3-20ubuntu0.1 [34,7 kB]                                                                                          
Get:17 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libatk-wrapper-java-jni amd64 0.33.3-20ubuntu0.1 [28,3 kB]                                                                                    
Get:18 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-common all 1:6.1.3~rc2-0ubuntu0.18.04.2 [35,7 MB]                                                                     
Get:19 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 libbsh-java all 2.0b4-19 [280 kB]                                                                                                         
Get:20 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 libcommons-logging-java all 1.2-2 [60,3 kB]                                                                                               
Get:21 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libexttextcat-data all 3.4.5-1 [162 kB]                                                                                                       
Get:22 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libexttextcat-2.0-0 amd64 3.4.5-1 [13,0 kB]                                                                                                   
Get:23 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libfreehand-0.1-1 amd64 0.1.2-2 [244 kB]                                                                                                      
Get:24 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-updates/universe amd64 libservlet3.1-java all 8.5.30-1ubuntu1.4 [389 kB]                                                                                 
Get:25 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 libhsqldb1.8.0-java all 1.8.0.10+dfsg-8 [723 kB]                                                                                          
Get:26 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libmwaw-0.3-3 amd64 0.3.13-1 [2.203 kB]                                                                                                       
Get:27 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libmythes-1.2-0 amd64 2:1.2.4-3 [8.362 B]                                                                                                     
Get:28 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libneon27-gnutls amd64 0.30.2-2build1 [66,3 kB]                                                                                               
Get:29 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 liborcus-0.13-0 amd64 0.13.4-2 [373 kB]                                                                                                       
Get:30 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libpagemaker-0.0-0 amd64 0.0.4-1 [59,9 kB]                                                                                                    
Get:31 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 libraptor2-0 amd64 2.0.14-1build1 [156 kB]                                                                                                    
Get:32 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 librasqal3 amd64 0.9.32-1build1 [166 kB]                                                                                                      
Get:33 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/main amd64 librdf0 amd64 1.0.17-1.1 [95,5 kB]                                                                                                            
Get:34 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-core amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [34,0 MB]                                                                     
Get:35 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-base-core amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [754 kB]                                                                 
Get:36 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-base-drivers amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [497 kB]                                                              
Get:37 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-base amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [1.731 kB]                                                                    
Err:38 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-calc amd64 1:6.1.3~rc2-0ubuntu0.18.04.2                                                                               
  Connection failed [IP: xxx.xxx.xxx.xxx 80]
Get:39 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-draw amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [2.613 kB]
Get:40 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-impress amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [907 kB]                                                                   
Get:41 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-math amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [379 kB]                                                                      
Get:42 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-report-builder-bin amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [806 kB]                                                        
Err:43 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-writer amd64 1:6.1.3~rc2-0ubuntu0.18.04.2                                                                             
  Connection failed [IP: xxx.xxx.xxx.xxx 80]
Get:44 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-avmedia-backend-gstreamer amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [24,4 kB]
Get:45 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 python3-uno amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [206 kB]                                                                           
Get:46 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [94,2 kB]                                                                          
Get:47 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-gtk3 amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [284 kB]                                                                      
Get:48 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-gnome amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [59,6 kB]                                                                    
Get:49 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-java-common all 1:6.1.3~rc2-0ubuntu0.18.04.2 [1.870 kB]                                                               
Get:50 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-script-provider-python all 1:6.1.3~rc2-0ubuntu0.18.04.2 [12,9 kB]                                                     
Get:51 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-librelogo all 1:6.1.3~rc2-0ubuntu0.18.04.2 [191 kB]                                                                   
Get:52 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-nlpsolver all 0.9+LibO6.1.3~rc2-0ubuntu0.18.04.2 [158 kB]                                                             
Get:53 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-ogltrans amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [73,4 kB]                                                                 
Get:54 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-report-builder all 1:6.1.3~rc2-0ubuntu0.18.04.2 [2.106 kB]                                                            
Get:55 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-script-provider-bsh all 1:6.1.3~rc2-0ubuntu0.18.04.2 [33,7 kB]
Get:56 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-script-provider-js all 1:6.1.3~rc2-0ubuntu0.18.04.2 [646 kB]                                                          
Get:57 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-sdbc-hsqldb amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [109 kB]                                                               
Get:58 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-sdbc-postgresql amd64 1:6.1.3~rc2-0ubuntu0.18.04.2 [224 kB]                                                           
Get:59 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-style-elementary all 1:6.1.3~rc2-0ubuntu0.18.04.2 [941 kB]                                                            
Get:60 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic/main amd64 libreoffice-wiki-publisher all 1.2.0+LibO6.1.3~rc2-0ubuntu0.18.04.2 [199 kB]
Fetched 99,7 MB in 13min 18s (125 kB/s)              
E: Failed to fetch http://ppa.launchpad.net/libreoffice/ppa/ubuntu/pool/main/libr/libreoffice/libreoffice-calc_6.1.3~rc2-0ubuntu0.18.04.2_amd64.deb  Connection failed [IP: xxx.xxx.xxx.xxx 80]
E: Failed to fetch http://ppa.launchpad.net/libreoffice/ppa/ubuntu/pool/main/libr/libreoffice/libreoffice-writer_6.1.3~rc2-0ubuntu0.18.04.2_amd64.deb  Connection failed [IP: xxx.xxx.xxx.xxx 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@hostname:~# 

6. Unfortunately, the above installation step has a problem. Try to execute ‘apt-get dist-upgrade’ to solve it. It will execute any upgrades available after the installation attempt above failed :

root@hostname:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@hostname:~# apt-get update && apt-get dist-upgrade
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Hit:2 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic InRelease                                                                                                                                    
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                 
Ign:4 http://pkg.jenkins.io/debian-stable binary/ InRelease                                                                                                                                  
Hit:5 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu bionic InRelease                                                                                             
Hit:6 http://pkg.jenkins.io/debian-stable binary/ Release                                                                                                                                                  
Hit:9 http://dl.google.com/linux/chrome/deb stable Release                                                                                                              
Hit:10 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease                                                                                                 
Get:12 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]                                       
Get:13 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-updates InRelease [88,7 kB]   
Get:14 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-backports InRelease [74,6 kB]              
Hit:7 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic InRelease
Fetched 247 kB in 3s (71,6 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@hostname:~#

Installation Steps of Libre Office from Ubuntu Software Panel

This part is describing on how to install Libre Office from Ubuntu Software Panel. It is an alternative for the installation if the previous installation method failed.

1. Apparently, there are no upgrades available. So, just purge the repository of libreoffice. It is because the installation in the fifth step failed. After that, start using another method to install Libre Office. The following is the command for purging the libreoffice repository :

root@hostname:~# apt-get install ppa-purge && ppa-purge ppa:libreoffice/paa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  aptitude
The following NEW packages will be installed:
  ppa-purge
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 6.312 B of archives.
After this operation, 24,6 kB of additional disk space will be used.
Get:1 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic/universe amd64 ppa-purge all 0.2.8+bzr63 [6.312 B]
Fetched 6.312 B in 4s (1.538 B/s)    
Selecting previously unselected package ppa-purge.
(Reading database ... 281098 files and directories currently installed.)
Preparing to unpack .../ppa-purge_0.2.8+bzr63_all.deb ...
Unpacking ppa-purge (0.2.8+bzr63) ...
Setting up ppa-purge (0.2.8+bzr63) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Updating packages lists
PPA to be removed: libreoffice paa
Warning:  Could not find package list for PPA: libreoffice paa
root@hostname:~# apt-get install ppa-purge && ppa-purge ppa:libreoffice/ppa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ppa-purge is already the newest version (0.2.8+bzr63).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Updating packages lists
PPA to be removed: libreoffice ppa
Package revert list generated:
 fonts-opensymbol/bionic
Disabling libreoffice PPA from 
/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-bionic.list
Updating packages lists
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '2:102.10+LibO6.0.6-0ubuntu0.18.04.1' (Ubuntu:18.04/bionic-updates [all]) for 'fonts-opensymbol'
The following packages will be DOWNGRADED:
  fonts-opensymbol
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 92,0 kB of archives.
After this operation, 7.168 B disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://xxx.xxxxxx.xxxxxx.com/ubuntu bionic-updates/main amd64 fonts-opensymbol all 2:102.10+LibO6.0.6-0ubuntu0.18.04.1 [92,0 kB]
Fetched 92,0 kB in 5s (18,9 kB/s)         
dpkg: warning: downgrading fonts-opensymbol from 2:102.10+LibO6.1.3~rc2-0ubuntu0.18.04.2 to 2:102.10+LibO6.0.6-0ubuntu0.18.04.1
(Reading database ... 281104 files and directories currently installed.)
Preparing to unpack .../fonts-opensymbol_2%3a102.10+LibO6.0.6-0ubuntu0.18.04.1_all.deb ...
Unpacking fonts-opensymbol (2:102.10+LibO6.0.6-0ubuntu0.18.04.1) over (2:102.10+LibO6.1.3~rc2-0ubuntu0.18.04.2) ...
Setting up fonts-opensymbol (2:102.10+LibO6.0.6-0ubuntu0.18.04.1) ...
Processing triggers for fontconfig (2.12.6-0ubuntu2) ...
PPA purged successfully
root@hostname:~#

2. After purging, use another method for installing Libre Office. Just executes it from Ubuntu Software Center. Type ‘software’ as in the following image below :

How to Install LibreOffice in Linux Ubuntu 18.04 Bionic Beaver

3. Click the Ubuntu Software and the following window will appear :

4. The above image appear after the LibreOffice application’s installation is complete. There is a check mark in the upper right of the LibreOffice item list. Initially, the check mark is not exist. Just click the item list of LibreOffice. The installation process of LibreOffice will start. Eventually, the following image will appear after the installation is completed :

5. Finally, the installation of LibreOffice is finished. Just click Launch to start using Libre Office.

Leave a Reply