summaryrefslogtreecommitdiff
path: root/Installation_Guide/en-US/sect-Repository_Configuration-Installation_with_APT_Packages.xml
blob: e549c554574661df4cefeb0604c82b75ae314ad5 (plain)
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Community_Installation_Guide.ent">
%BOOK_ENTITIES;
]>
<section id="sect-Community_Installation_Guide-Installation_with_APT_Packages">
    <title>Installation with APT Packages</title>
    <important>
        <para>
            APT packages for Kolab 2.4 are actively being worked on, but are not yet available.
        </para>

    </important>
    <!--
    <para>
        APT packages are provided for the following GNU/Linux distributions, and distribution versions:
    </para>
    <para>
        <table frame="all" id="tabl-Community_Installation_Guide-Installation_with_APT_Packages-APT_Packages_Distribution_Support">
            <title>APT Packages Distribution Support</title>
            <tgroup align="left" cols="5" colsep="1" rowsep="1">
                <colspec colname="c1"></colspec>
                <colspec colname="c2"></colspec>
                <colspec colname="c3"></colspec>
                <colspec colname="c4"></colspec>
                <colspec colname="c5" colnum="5"></colspec>
                <thead>
                    <row>
                        <entry align="center" nameend="c4" namest="c1">
                            Distribution Information
                        </entry>
                        <entry morerows="1">
                            EOS / EOL Date
                        </entry>

                    </row>
                    <row>
                        <entry>
                            Name
                        </entry>
                        <entry>
                            CodeName
                        </entry>
                        <entry>
                            Version
                        </entry>
                        <entry>
                            Architectures
                        </entry>

                    </row>

                </thead>
<tbody>
                    <row>
                        <entry>
                            Debian
                        </entry>
                        <entry>
                            Lenny (oldstable)
                        </entry>
                        <entry>
                            5.0
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            February 6th, 2012
                        </entry>

                    </row>
                    <row>
                        <entry>
                            Debian
                        </entry>
                        <entry>
                            Squeeze (stable)
                        </entry>
                        <entry>
                            6.0
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row condition="community">
                        <entry>
                            Debian
                        </entry>
                        <entry>
                            Wheezy (testing)
                        </entry>
                        <entry>
                            7.0
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row condition="community">
                        <entry>
                            Debian
                        </entry>
                        <entry>
                            Sid (unstable)
                        </entry>
                        <entry>
                            N/A
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row condition="enterprise">
                        <entry>
                            Ubuntu
                        </entry>
                        <entry>
                            Dapper
                        </entry>
                        <entry>
                            6.06 LTS
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row condition="enterprise">
                        <entry>
                            Ubuntu
                        </entry>
                        <entry>
                            Hardy
                        </entry>
                        <entry>
                            8.04 LTS
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row condition="enterprise">
                        <entry>
                            Ubuntu
                        </entry>
                        <entry>
                            Karmic
                        </entry>
                        <entry>
                            9.10
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row>
                        <entry>
                            Ubuntu
                        </entry>
                        <entry>
                            Lucid
                        </entry>
                        <entry>
                            10.04 LTS
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row>
                        <entry>
                            Ubuntu
                        </entry>
                        <entry>
                            Maverick
                        </entry>
                        <entry>
                            10.10
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>
                    <row condition="community">
                        <entry>
                            Ubuntu
                        </entry>
                        <entry>
                            Natty
                        </entry>
                        <entry>
                            -
                        </entry>
                        <entry>
                            i386, amd64
                        </entry>
                        <entry>
                            T.B.D.
                        </entry>

                    </row>

                </tbody>

            </tgroup>

        </table>

    </para>
    <section id="sect-Community_Installation_Guide-Installation_with_APT_Packages-Debian">
        <title>Debian</title>
        <procedure>
            <step condition="enterprise">
                <para>
                    Install the <application>apt-transport-https</application> package:
                </para>
                <para>
                    <screen># <userinput>aptitude install apt-transport-https</userinput></screen>
                </para>
            </step>
            <step>
                <para>
                    For Kolab &PRODUCT_VERSION; software packages for Debian Squeeze, add the following two lines to <filename>/etc/apt/sources.list</filename>:
                </para>
                <para condition="community">

<screen>deb http://mirror.kolabsys.com/pub/debian/kolab-&PRODUCT_VERSION;/ squeeze release updates
deb-src http://mirror.kolabsys.com/pub/debian/kolab-&PRODUCT_VERSION;/ squeeze release updates</screen>

                </para>
                <para condition="enterprise">

<screen>deb https://mirror.kolabsys.com/debian/kolab-&PRODUCT_VERSION;/ squeeze release updates
deb-src https://mirror.kolabsys.com/debian/kolab-&PRODUCT_VERSION;/ squeeze release updates</screen>

                </para>
                <note>
                    <title>Updates in Testing Phase and Packages in Development</title>
                    <para>
                        Optionally, enable the <literal>updates-testing</literal> and <literal>development</literal> components for newer, but less stable packages.
                    </para>

                </note>
                <para>
                    For other versions of the Debian distribution, please replace <code>squeeze</code> with the corresponding distribution codename.
                </para>

            </step>
            <step>
                <para>
                    To ensure the Kolab packages have priority over the Debian packages, such as must be the case for PHP as well as Cyrus IMAP, please make sure the APT preferences <emphasis>pin</emphasis> the mirror.kolabsys.com origin as a preferred source. Put the following in <filename>/etc/apt/preferences</filename>:
                </para>
                <para>

<screen>Package: *
Pin: origin mirror.kolabsys.com
Pin-Priority: 501</screen>

                </para>

            </step>
            <step condition="enterprise">
                <para>
                    Import the GPG key with which the repository metadata is signed:
                </para>
                <para>

<screen>$ <userinput>gpg &min;&min;search squeeze-packages@kolabsys.com</userinput></screen>

                </para>
                <para>
                    For Debian Lenny, please replace <code>squeeze</code> with the corresponding distribution codename.
                </para>

            </step>
            <step condition="enterprise">
                <para>
                    For access to the Enterprise edition, you have been issued a SSL certificate by Kolab Systems. How to obtain, renew and use the SSL certificate to provide you with access to the Enterprise editions, please read <ulink url="https://support.kolabsys.com/Obtaining,_Renewing_and_Using_a_Client_SSL_Certificate" />.
                </para>

            </step>
            <step>
                <para>
                    Update the repository metadata:
                </para>
                <para>

<screen># <userinput>apt-get update</userinput></screen>

                </para>

            </step>
            <step>
                <para>
                    Start the installation of the base package as follows:
                </para>
                <para>

<screen># <userinput>aptitude install kolabd</userinput></screen>

                </para>

            </step>
            <step>
                <para>
                    Verify the packages from the Kolab mirror have priority over the packages from the stock Debian repositories:
                </para>
                <para>
                    <screen># <userinput>apt-cache policy cyrus-imapd</userinput></screen>
                </para>
            </step>
            <step>
                <para>
                    When asked to confirm you want to install the package and its dependencies, press Enter.
                </para>

            </step>
            <step condition="community">
                <para>
                    When asked to confirm you want to continue installing the packages of which the integrity nor source can be securely verified, press <keycap>y</keycap> then <keycap>Enter</keycap>.
                </para>

            </step>

        </procedure>


    </section>

    <section id="sect-Community_Installation_Guide-Installation_with_APT_Packages-Ubuntu">
        <title>Ubuntu</title>
        <procedure>
            <step>
                <para>
                    For Kolab &PRODUCT_VERSION; software packages for Ubuntu Lucid, add the following two lines to <filename>/etc/apt/sources.list</filename>:
                </para>
                <para condition="community">

<screen>deb http://mirror.kolabsys.com/pub/ubuntu/kolab-&PRODUCT_VERSION;/ lucid release updates
deb-src http://mirror.kolabsys.com/pub/ubuntu/kolab-&PRODUCT_VERSION;/ lucid release updates</screen>

                </para>
                <para condition="enterprise">

<screen>deb http://mirror.kolabsys.com/pub/ubuntu/kolab-&PRODUCT_VERSION;/ lucid release updates
deb-src http://mirror.kolabsys.com/pub/ubuntu/kolab-&PRODUCT_VERSION;/ lucid release updates</screen>

                </para>
                <para>
                    For other versions of the Ubuntu distribution, please replace <code>lucid</code> with the corresponding distribution codename.
                </para>

            </step>
            <step>
                <para>
                    To ensure the Kolab packages have priority over the Ubuntu packages, such as must be the case for PHP as well as Cyrus IMAP, please make sure the APT preferences <emphasis>pin</emphasis> the mirror.kolabsys.com origin as a preferred source. Put the following in <filename>/etc/apt/preferences</filename>:
                </para>
                <para>

<screen>Package: *
Pin: origin mirror.kolabsys.com
Pin-Priority: 501</screen>

                </para>

            </step>

        </procedure>

        <para condition="enterprise">
            For access to the Enterprise edition, you have been issued a SSL certificate by Kolab Systems. How to obtain, renew and use the SSL certificate to provide you with access to the Enterprise editions, please read <ulink url="https://support.kolabsys.com/Obtaining,_Renewing_and_Using_a_Client_SSL_Certificate" />.
        </para>

    </section>

    <section id="sect-Community_Installation_Guide-Installation_with_APT_Packages-Troubleshooting_the_APT_Package_Manager">
        <title>Troubleshooting the APT Package Manager</title>
        <section id="sect-Community_Installation_Guide-Troubleshooting_the_APT_Package_Manager-Broken_Packages">
            <title>Broken Packages</title>
            <para>
                If you get an error similar to, for example:
            </para>
            <para>

<screen>test90-1:~# apt-get install kolabd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kolabd:    Depends: postfix (&gt;= 2.4) but it is not going to be installed
            Depends: postfix-ldap (&gt;= 2.4) but it is not going to be installed
E: Broken packages</screen>

            </para>
            <para>
                The error is not caused by broken packages, but a broken package manager that cannot install <application>exim</application> and <application>postfix</application> in parallel.
            </para>
            <formalpara id="form-Community_Installation_Guide-Broken_Packages-Solution">
                <title>Solution</title>
                <para>
                    First remove any non-postfix MTA you may have installed, which in a default Debian installation is probably <application>exim</application>.
                </para>

            </formalpara>
            <para>
                To remove <application>exim</application>, execute the following with superuser privileges:
            </para>
            <para>

<screen># <userinput>apt-get remove exim4 exim4-base exim4-config exim4-daemon-light</userinput></screen>

            </para>
            <para>
                Then continue installing Kolab:
            </para>
            <para>

<screen># <userinput>aptitude install kolabd</userinput></screen>

            </para>

        </section>


    </section>
    //    -->
</section>