-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstalling QGIS
More file actions
198 lines (155 loc) · 6.86 KB
/
Copy pathinstalling QGIS
File metadata and controls
198 lines (155 loc) · 6.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#adding the repo for qgis
sudo add-apt-repository "deb http://qgis.org/ubuntugis trusty main"
sudo add-apt-repository "deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main"
##adding the key
wget -O - http://qgis.org/downloads/qgis-2016.gpg.key | gpg --import
gpg --fingerprint 073D307A618E5811
#Should output:
pub 2048R/618E5811 2016-08-17 [expires: 2017-08-17]
Key fingerprint = 942D 6AD5 DF3E 75DE A9AF 72B2 073D 307A 618E 5811
uid QGIS Archive Automatic Signing Key (2016) <qgis-developer@lists.osgeo.org>
sub 2048R/D34A963D 2016-08-17
After you have verified the fingerprint you can add the key to apt with:
gpg --export --armor 073D307A618E5811 | sudo apt-key add -
#installing qgis
sudo apt-get update
#output
-W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 089EBE08314DF160
-________________________________________________________________________________________
-#####comments#######
-
-apt-key utility
-
-apt-key is used to manage the list of keys used by apt to verify packages. Packages which have been verified using these keys will be considered trusted.
-To update the local keyring with the keyring of Ubuntu archive keys and removes from the keyring the archive keys which are no longer valid.
-
-try:
-$ sudo apt-key update
-$ sudo apt-get update
-
-#if it is not working trying with Y-PPA-Manager
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager
type:
y-ppa-manager
When the main y-ppa-manager window appears, click on "Advanced."
From the list of advanced tasks, select "Try to import all missing GPG keys" and click OK
__________________________________________________________________________________
sudo apt-get install qgis python-qgis qgis-plugin-grass
Sources:
http://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey
http://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu
https://hub.qgis.org/issues/14568
###installing postgresql####
source: https://wiki.postgresql.org/wiki/Apt
#adding the repo to the sources.list
## note: the repo is added on /etc/apt/sources.list.d/pgdg.list
########################WARMING: THIS REPO LEADS TO BROCKEN PACKAGES ###########################################
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
#adding the key
sudo apt-get install wget ca-certificates
#the certificates are stored on /etc/ssl/certs
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
#update and upgrade and installation
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql
@@ -214,14 +141,9 @@ The following packages will be upgraded:
Need to get 6.440 kB of archives.
After this operation, 28,3 MB of additional disk space will be used.
-
-###installation sussessfully
-
-
###installing postgis
repo used for fetching deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main
-source: http://askubuntu.com/questions/615767/how-to-install-postgresql-9-4-postgis-2-1-on-ubuntu-14-04trusty-tahr
-
+sudo apt-get update
sudo apt-get install postgis
##output
Some packages could not be installed. This may mean that you have
@@ -244,11 +166,9 @@ The following packages have unmet dependencies:
you can find some information here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839182
-
-
-## better to install postgis 2.3 (?) but with this version you get more in trouble. See after
+## Trying to install postgis 2.3
-sudo apt-get install postgis 2.3
+ sudo apt-get install postgis 2.3
#output
Reading package lists... Done
Building dependency tree
@@ -544,10 +464,6 @@ E: Unable to correct problems, you have held broken packages.
#run the command
sudo apt-cache policy postgis 2.3
-#output
-
-###some line is missing: I could not see all of them from the terminal
-
libghc-hdbc-postgresql-prof-2.3.2.1-90dce:
Installed: (none)
Candidate: (none)
@@ -1060,8 +976,6 @@ python2.3-tcpwrap:
Version table:
-######postgis 2.3 seems to have big issue.
-
sudo apt-cache policy postgis
postgis:
Installed: (none)
@@ -1091,7 +1005,6 @@ postgis
Conflicts: postgis:i386
sudo apt-cache show postgis
- #show performs a function similar to dpkg --print-avail; it displays the package records for the named packages
Package: postgis
Version: 2.3.0+dfsg-2.pgdg14.04+1
Architecture: amd64
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#installing version postgresql-9.3-postgis-2.2
from repo https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable
##uncomment all the repo on the file source.list
deb http://qgis.org/ubuntugis trusty main
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main
#need to remove also from the file pgdg.list:
http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main amd64
#run the command:
sudo gedit pgdg.list
deleting the line
#adding the repo from launchpad
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
#manually, coping and pasting the following lines to the file sources.list
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main
sudo apt-get update
##signing the key
Signing key:
1024R/314DF160 (What is this?)
Fingerprint:
6B827C12C2D425E227EDCA75089EBE08314DF160
sudo apt-get update
sudo apt-get install postgresql-9.3-postgis-2.2
#####installing pgadmin3 on Ubuntu######
#importing the repo on
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
#importing the key, update the package list and install pgadmin3
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
________________________________________________________________________________________________
#comment
The following packages have been kept back:
liblwgeom-2.2-5 liblwgeom-dev linux-generic-lts-wily
linux-headers-generic-lts-wily linux-image-generic-lts-wily postgresql-9.3
postgresql-9.3-postgis-2.2 postgresql-9.3-postgis-scripts
postgresql-client-common postgresql-common postgresql-contrib-9.3
The following packages will be upgraded:
postgresql-client-9.3
1 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Need to get 1.048 kB of archives.
After this operation, 1.360 kB of additional disk space will be used.
Do you want to continue? [Y/n]
_______________________________________________________________________________________________
sudo apt-get install pgadmin3