Installing DIA on Ubuntu16.04

Posted on

DIA which is stands for Diagram Editor is a multi-purpose editor developed for editing numerous diagram such as ERD (Entity Relationship Diagram), UML or any other diagrams that can be saved and exported to other formats. Moreover, this editor is available in several operating system to be installed.

In this article, there will be steps explained to install DIA in Ubuntu 16.04 Linux Operating System. Below are those steps :

  1. First of all, the most general step is to update the operating system. The following syntax is the one which is used to perform it :
apt-get update

Below is the execution of the above command in a command prompt :

root@hostname:~# apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                     
Hit:2 http://dl.google.com/linux/chrome/deb stable Release                                                                                                       
Hit:3 http://archive.canonical.com/ubuntu xenial InRelease                                                                                 
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease                                                                                    
Ign:5 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist InRelease                                        
Hit:6 http://us.archive.ubuntu.com/ubuntu xenial InRelease                                     
Hit:7 http://ppa.launchpad.net/atareao/telegram/ubuntu xenial InRelease  
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                    
Hit:10 http://downloads-distro.mongodb.org/repo/debian-sysvinit dist Release                            
Hit:11 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial InRelease                                        
Hit:13 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu xenial InRelease          
Get:14 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23,9 kB]         
Get:15 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [499 kB]
Ign:16 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial InRelease
Get:17 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages [42,5 kB]
Get:18 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main i386 Packages [42,7 kB]
Hit:19 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial InRelease              
Ign:20 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial Release                                                                                                                                                  
Ign:21 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 Packages                                                                                                                                      
Ign:22 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main i386 Packages                                                                                                                                       
Ign:23 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main all Packages                                                                                                                                        
Ign:24 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en_US                                                                                                                                   
Ign:25 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en                                                                                                                                      
Ign:26 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                               
Ign:27 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                  
Ign:21 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 Packages                                                                                                                                      
Ign:22 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main i386 Packages                                                                                                                                       
Ign:23 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main all Packages                                                                                                                                        
Ign:24 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en_US                                                                                                                                   
Ign:25 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en                                                                                                                                      
Ign:26 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                               
Ign:27 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                  
Ign:21 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 Packages                                                                                                                                      
Ign:22 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main i386 Packages                                                                                                                                        
Ign:23 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main all Packages                                                                                                                                         
Ign:24 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en_US                                                                                                                                    
Ign:25 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en                                                                                                                                       
Ign:26 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                
Ign:27 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                   
Ign:21 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 Packages                                                                                                                                       
Ign:22 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main i386 Packages                                                                                                                                        
Ign:23 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main all Packages                                                                                                                                         
Ign:24 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en_US                                                                                                                                    
Ign:25 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en                                                                                                                                       
Ign:26 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                
Ign:27 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                   
Ign:21 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 Packages                                                                                                                                       
Ign:22 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main i386 Packages                                                                                                                                        
Ign:23 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main all Packages                                                                                                                                         
Ign:24 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en_US                                                                                                                                   
Ign:25 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en                                                                                                                                      
Ign:26 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                               
Ign:27 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main DEP-11 64x64 Icons
Err:21 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 Packages
  404  Not Found
Ign:22 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main i386 Packages
Ign:23 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main all Packages
Ign:24 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en_US
Ign:25 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main Translation-en
Ign:26 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main amd64 DEP-11 Metadata
Ign:27 http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial/main DEP-11 64x64 Icons
Get:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [488 kB]
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages                                                                                                                                                     
Get:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [200 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [288 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [188 kB]                                                                                                                                       
Get:32 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [448 kB]                                                                                                                                       
Get:33 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [436 kB]                                                                                                                                        
Get:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [171 kB]                                                                                                                                       
Get:35 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [160 kB]                                                                                                                                
Get:36 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [188 kB]                                                                                                                                   
Get:37 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2.516 B]                                                                                                                             
Get:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [488 kB]                                                                                                                                            
Fetched 3.279 kB in 1min 18s (41,6 kB/s)                                                                                                                                                                                         
AppStream cache update completed, but some metadata was ignored due to errors.
Reading package lists... Done
W: http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/Release.gpg: Signature by key 492EAFE8CD016A07919F1D2B9ECBEC467F0CEB10 uses weak digest algorithm (SHA1)
W: The repository 'http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/vokoscreen-dev/vokoscreen/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

2. The above output was just presented to show how the output would like which is going to be different based on the condition of the operating system.  After that, the installation process of DIA can be started by typing the following command in the bash prompt :

root@hostname:~# apt-get install dia
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dia-common dia-libs dia-shapes
The following NEW packages will be installed:
dia dia-common dia-libs dia-shapes
0 upgraded, 4 newly installed, 0 to remove and 804 not upgraded.
Need to get 4.669 kB of archives.
After this operation, 23,4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 dia-common all 0.97.3-1 [3.596 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 dia-libs amd64 0.97.3-1 [686 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 dia amd64 0.97.3-1 [170 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 dia-shapes all 0.6.0-1 [217 kB]
Fetched 4.669 kB in 1min 7s (68,8 kB/s)
Selecting previously unselected package dia-common.
(Reading database ... 905625 files and directories currently installed.)
Preparing to unpack .../dia-common_0.97.3-1_all.deb ...
Unpacking dia-common (0.97.3-1) ...
Selecting previously unselected package dia-libs.
Preparing to unpack .../dia-libs_0.97.3-1_amd64.deb ...
Unpacking dia-libs (0.97.3-1) ...
Selecting previously unselected package dia.
Preparing to unpack .../dia_0.97.3-1_amd64.deb ...
Unpacking dia (0.97.3-1) ...
Selecting previously unselected package dia-shapes.
Preparing to unpack .../dia-shapes_0.6.0-1_all.deb ...
Unpacking dia-shapes (0.6.0-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Setting up dia-common (0.97.3-1) ...
Setting up dia-libs (0.97.3-1) ...
Setting up dia (0.97.3-1) ...
update-alternatives: using /usr/bin/dia-normal to provide /usr/bin/dia (dia) in auto mode
update-alternatives: using /usr/bin/dia-normal-integrated to provide /usr/bin/dia (dia) in auto mode
Setting up dia-shapes (0.6.0-1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
You have new mail in /var/mail/root
root@hostname:~#

3. After installing DIA successfully, try to execute it by typing the following keyword which is ‘dia’ as shown on the image below :

Installing DIA on Ubuntu16.04
Installing DIA on Ubuntu16.04

4. After successfully executed DIA through the keyword ‘dia’, the following display will be shown :

Leave a Reply