{"id":539,"date":"2012-10-08T16:35:47","date_gmt":"2012-10-08T14:35:47","guid":{"rendered":""},"modified":"2018-11-01T00:49:32","modified_gmt":"2018-10-31T23:49:32","slug":"how-install-asterisk-debian-apt-repository","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/how-install-asterisk-debian-apt-repository\/","title":{"rendered":"How to install Asterisk on Debian &#8211; APT repository"},"content":{"rendered":"<p>\n\tLatest Asterisk packages we should install now&nbsp;directly into our Debian\/Ubuntu servers using the apt-get tool. More info at&nbsp;<a href=\"https:\/\/wiki.asterisk.org\/wiki\/display\/AST\/Asterisk+Packages#AsteriskPackages-APT%28Debian%2FUbuntu%29\">https:\/\/wiki.asterisk.org\/wiki\/display\/AST\/Asterisk+Packages#AsteriskPackages-APT%28Debian%2FUbuntu%29<\/a><\/p>\n<p>\n\t&nbsp;<\/p>\n<h2>\n\t<b>Instructions&nbsp;<\/b><b>Options 1) (debian and Ubuntu)<\/b><\/h2>\n<p>\n\tFirst, we will import Asterisk project apt key:<\/p>\n<pre>\r\n<strong><span>apt-key adv --keyserver pgp.mit.edu --recv-keys 175E41DF\r\n<\/span><\/strong>\r\nExecuting: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring \/etc\/apt\/secring.gpg --trustdb-name \/etc\/apt\/trustdb.gpg --keyring \/etc\/apt\/trusted.gpg --primary-keyring \/etc\/apt\/trusted.gpg --keyserver pgp.mit.edu --recv-keys 175E41DF\r\ngpg: requesting key 175E41DF from hkp server pgp.mit.edu\r\ngpg: key 175E41DF: public key &quot;Asterisk Packaging Team &lt;packages@asterisk.org&gt;&quot; imported\r\ngpg: no ultimately trusted keys found\r\ngpg: Total number processed: 1\r\ngpg:               <span>i<\/span><span><span><span>mported: <\/span><\/span><\/span><span><span>1  (RSA: 1)<\/span><\/span><\/pre>\n<div>\n\tor, in a case of problems, do it manually<\/div>\n<pre>\r\nwget http:\/\/packages.asterisk.org\/keys\/175E41DF.pub -O - | apt-key add -<\/pre>\n<div>\n\tNow we will edit apt sources, so&nbsp;add the lines to your \/etc\/apt\/sources.list. Open the file witch your preferred editor, for example with vim&nbsp;<\/div>\n<pre>\r\nvim \/etc\/apt\/sources.list<\/pre>\n<div>\n\tand, depends on your debian distribution, which we may check this with<\/div>\n<div>\n<pre>\r\n<strong>lsb_release -cs<\/strong>\r\n<span><span><span>squeeze<\/span><\/span><\/span><\/pre>\n<div>\n\t\t&nbsp;add lines (here for <em>squeeze<\/em>)<\/div>\n<\/div>\n<pre>\r\ndeb http:\/\/packages.asterisk.org\/deb squeeze main\r\ndeb-src http:\/\/packages.asterisk.org\/deb squeeze main<\/pre>\n<div>\n<p>\n\t\t&nbsp;<\/p>\n<h2>\n\t\t<b>Instructions&nbsp;<\/b><b>Options 2) (Ubuntu)<\/b><\/h2>\n<p>\n\t\tInstall package used to manage package repositories using&nbsp;add-apt-repository command<\/p>\n<pre>\r\n<span>apt-get install python-software-properties<\/span><\/pre>\n<p>\n\t\tnow import Asterisk project apt key:<\/p>\n<pre>\r\napt-key adv --keyserver pgp.mit.edu --recv-keys 175E41DF<\/pre>\n<p>\n\t\tand run for Ubuntu<\/p>\n<pre>\r\nsudo add-apt-repository &quot;deb http:\/\/packages.asterisk.org\/deb `lsb_release -cs` main&quot;\r\nsudo add-apt-repository &quot;deb-src http:\/\/packages.asterisk.org\/deb `lsb_release -cs` main&quot;<\/pre>\n<h2>\n\t\tUpdate Package list&nbsp;<\/h2>\n<p>\n\t\tIn both cases&nbsp;we have to update local apt-get database running &nbsp;<em>apt-get update<\/em><\/p>\n<\/div>\n<div>\n<pre>\r\n...\r\nGet:1 http:\/\/packages.asterisk.org squeeze Release.gpg [490 B]\r\nIgn http:\/\/packages.asterisk.org\/deb\/ squeeze\/main Translation-en\r\nIgn http:\/\/packages.asterisk.org\/deb\/ squeeze\/main Translation-en_US\r\nGet:2 http:\/\/packages.asterisk.org squeeze Release [2,226 B]\r\nIgn http:\/\/packages.asterisk.org squeeze\/main Sources\r\nIgn http:\/\/packages.asterisk.org squeeze\/main i386 Packages\r\nGet:3 http:\/\/packages.asterisk.org squeeze\/main Sources [1,525 B]\r\nGet:4 http:\/\/packages.asterisk.org squeeze\/main i386 Packages [6,156 B]\r\nFetched 10.4 kB in 1s (9,382 B\/s)\r\nReading package lists... Done<\/pre>\n<div>\n\t\t&nbsp;<\/div>\n<\/div>\n<div>\n\tand check which version of the Asterisk server package exist there, for example, for stable version of debian&nbsp;squeeze it is asterisk 1.6, now it should be higher, we should find something like this:<\/div>\n<div>\n<pre>\r\n<strong>apt-cache show asterisk\r\n<\/strong>\r\nPackage: asterisk\r\nVersion: 1:1.8.11.1-1digium1~squeeze\r\nArchitecture: i386\r\nMaintainer: Paul Belanger &lt;pabelanger@digium.com&gt;\r\nInstalled-Size: 9304<\/pre>\n<div>\n\t\tNow we may install main asterisk<\/div>\n<pre>\r\napt-get install asterisk<\/pre>\n<div>\n\t\tor upgrade previous one.<\/div>\n<div>\n\t\t&nbsp;<\/div>\n<\/div>\n<div>\n\t&nbsp;<\/div>","protected":false},"excerpt":{"rendered":"<p>\n\tLatest Asterisk packages we should install now&nbsp;directly into our Debian\/Ubuntu servers using the apt-get tool. More info at&nbsp;<a href=\"https:\/\/wiki.asterisk.org\/wiki\/display\/AST\/Asterisk+Packages#AsteriskPackages-APT%28Debian%2FUbuntu%29\">https:\/\/wiki.asterisk.org\/wiki\/display\/AST\/Asterisk+Packages#AsteriskPackages-APT%28Debian%2FUbuntu%29<\/a><\/p>\n<p>\n\t&nbsp;<\/p>\n<h2>\n\t<b>Instructions&nbsp;<\/b><b>Options 1) (debian and Ubuntu)<\/b><\/h2>\n<p>\n\tFirst, we will import Asterisk project apt key:<\/p>","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[777],"tags":[],"class_list":["post-539","post","type-post","status-publish","format-standard","hentry","category-asterisk-en"],"taxonomy_info":{"category":[{"value":777,"label":"Asterisk"}]},"featured_image_src_large":false,"author_info":{"display_name":"admin","author_link":"https:\/\/nil.uniza.sk\/en\/author\/admin\/"},"comment_info":101,"category_info":[{"term_id":777,"name":"Asterisk","slug":"asterisk-en","term_group":0,"term_taxonomy_id":775,"taxonomy":"category","description":"","parent":771,"count":3,"filter":"raw","cat_ID":777,"category_count":3,"category_description":"","cat_name":"Asterisk","category_nicename":"asterisk-en","category_parent":771}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=539"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/539\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}