<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2166/18/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=18415794#comment-18415794">Asterisk Packages</a></h2>
<h4>Page
<b>comment added</b> by <a href="https://wiki.asterisk.org/wiki/display/~pabelanger">Paul Belanger</a>
</h4>
<br/>
<div class="notificationGreySide">
<p>Something is wrong with your setup, that is for sure. What happens when you do:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">$ sudo /etc/init.d/asterisk restart</pre>
</div></div>
<p>Also, what is the output of:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">$ ls -la /var/lib/asterisk/astdb</pre>
</div></div>
</div>
<div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
<strong>In reply to a comment by <a href="/wiki/display/~roxy"
class="url fn confluence-userlink" data-username="roxy"
>herman</a>:</strong><br/>
<p>Starting from asterisk 1.8.3.2 on Ubuntu Lucid 10.04 Server 64-bit, I did have to perform a purge and reinstallation as earlier communicated. </p>
<p>New problem: apparantly neither /usr/lib/asterisk/modules are installed, nor astdb. Below as well the installation and asterisk startup logs are included. Kindly request for help.</p>
<p>This is the installation log:</p>
<p>herman@ubuntu-1004:~$ sudo apt-get -f install<br/>
Reading package lists... Done<br/>
Building dependency tree<br/>
Reading state information... Done<br/>
Correcting dependencies... Done<br/>
The following extra packages will be installed:<br/>
asterisk asterisk-config asterisk-core-sounds-en-gsm<br/>
Suggested packages:<br/>
asterisk-doc asterisk-dev asterisk-ooh323 asterisk-dahdi<br/>
Recommended packages:<br/>
asterisk-voicemail asterisk-voicemail-storage asterisk-moh-opsound-wav<br/>
The following NEW packages will be installed:<br/>
asterisk-config asterisk-core-sounds-en-gsm<br/>
The following packages will be upgraded:<br/>
asterisk<br/>
1 upgraded, 2 newly installed, 0 to remove and 150 not upgraded.<br/>
1 not fully installed or removed.<br/>
Need to get 4,724kB/6,530kB of archives.<br/>
After this operation, 4,927kB of additional disk space will be used.<br/>
Do you want to continue <span class="error">[Y/n]</span>? y<br/>
Get:1 <a href="http://packages.asterisk.org/deb/" class="external-link" rel="nofollow">http://packages.asterisk.org/deb/</a> lucid/main asterisk 1:1.8.6.0-1digium1~lucid <a href="/wiki/pages/createpage.action?spaceKey=AST&title=3%2C853kB" class="createlink">3,853kB</a><br/>
Get:2 <a href="http://packages.asterisk.org/deb/" class="external-link" rel="nofollow">http://packages.asterisk.org/deb/</a> lucid/main asterisk-config 1:1.8.6.0-1digium1~lucid <a href="/wiki/pages/createpage.action?spaceKey=AST&title=871kB" class="createlink">871kB</a><br/>
Fetched 4,724kB in 9s (485kB/s)<br/>
Selecting previously deselected package asterisk.<br/>
(Reading database ... 81612 files and directories currently installed.)<br/>
Preparing to replace asterisk 1:1.8.5.0-1digium2~lucid (using .../asterisk_1%3a1.8.6.0-1digium1~lucid_amd64.deb) ...<br/>
Stopping Asterisk PBX: asteriskstart-stop-daemon: unrecognized option '--retry=0/2/TERM/2/KILL/5'<br/>
Try `start-stop-daemon --help' for more information.<br/>
invoke-rc.d: initscript asterisk, action "stop" failed.<br/>
dpkg: warning: old pre-removal script returned error exit status 2<br/>
dpkg - trying script from the new package instead ...<br/>
Stopping Asterisk PBX: asteriskstart-stop-daemon: unrecognized option '--retry=0/2/TERM/2/KILL/5'<br/>
Try `start-stop-daemon --help' for more information.<br/>
invoke-rc.d: initscript asterisk, action "stop" failed.<br/>
dpkg: error processing /var/cache/apt/archives/asterisk_1%3a1.8.6.0-1digium1~lucid_amd64.deb (--unpack):<br/>
subprocess new pre-removal script returned error exit status 2<br/>
Starting Asterisk PBX: start-stop-daemon: unrecognized option '--group'<br/>
Try `start-stop-daemon --help' for more information.<br/>
invoke-rc.d: initscript asterisk, action "start" failed.<br/>
dpkg: error while cleaning up:<br/>
subprocess installed post-installation script returned error exit status 2<br/>
Selecting previously deselected package asterisk-config.<br/>
Unpacking asterisk-config (from .../asterisk-config_1%3a1.8.6.0-1digium1~lucid_all.deb) ...<br/>
Selecting previously deselected package asterisk-core-sounds-en-gsm.<br/>
Unpacking asterisk-core-sounds-en-gsm (from .../asterisk-core-sounds-en-gsm_1.4.21-1digium1~lucid_all.deb) ...<br/>
Errors were encountered while processing:<br/>
/var/cache/apt/archives/asterisk_1%3a1.8.6.0-1digium1~lucid_amd64.deb<br/>
E: Sub-process /usr/bin/dpkg returned an error code (1)</p>
<p>This is the asterisk startup log:</p>
<p>herman@ubuntu-1004:/etc/asterisk$ asterisk -cvvvvvvvvvv<br/>
Asterisk 1.8.5.0-1digium2~lucid, Copyright (C) 1999 - 2011 Digium, Inc. and others.<br/>
Created by Mark Spencer <markster@digium.com><br/>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.<br/>
This is free software, with components licensed under the GNU General Public<br/>
License version 2 and other licenses; you are welcome to redistribute it under<br/>
certain conditions. Type 'core show license' for details.<br/>
=========================================================================<br/>
== Parsing '/etc/asterisk/asterisk.conf': == Found<br/>
Unable to open pid file '/var/run/asterisk/asterisk.pid': Permission denied<br/>
Unable to bind socket to /var/run/asterisk/asterisk.ctl: Permission denied<br/>
== Parsing '/etc/asterisk/logger.conf': == Found<br/>
Logger Warning: Unable to open log file '/var/log/asterisk/messages': Permission denied<br/>
== Parsing '/etc/asterisk/asterisk.conf': == Found<br/>
== Manager registered action DataGet<br/>
== Parsing '/etc/asterisk/codecs.conf': == Found<br/>
Asterisk Dynamic Loader Starting:<br/>
== Parsing '/etc/asterisk/modules.conf': == Found<br/>
== Parsing '/etc/asterisk/dnsmgr.conf': == Found<br/>
== Parsing '/etc/asterisk/http.conf': == Found<br/>
== Manager registered action Ping<br/>
== Manager registered action Events<br/>
== Manager registered action Logoff<br/>
== Manager registered action Login<br/>
== Manager registered action Challenge<br/>
== Manager registered action Hangup<br/>
== Manager registered action Status<br/>
== Manager registered action Setvar<br/>
== Manager registered action Getvar<br/>
== Manager registered action GetConfig<br/>
== Manager registered action GetConfigJSON<br/>
== Manager registered action UpdateConfig<br/>
== Manager registered action CreateConfig<br/>
== Manager registered action ListCategories<br/>
== Manager registered action Redirect<br/>
== Manager registered action Atxfer<br/>
== Manager registered action Originate<br/>
== Manager registered action Command<br/>
== Manager registered action ExtensionState<br/>
== Manager registered action AbsoluteTimeout<br/>
== Manager registered action MailboxStatus<br/>
== Manager registered action MailboxCount<br/>
== Manager registered action ListCommands<br/>
== Manager registered action SendText<br/>
== Manager registered action UserEvent<br/>
== Manager registered action WaitEvent<br/>
== Manager registered action CoreSettings<br/>
== Manager registered action CoreStatus<br/>
== Manager registered action Reload<br/>
== Manager registered action CoreShowChannels<br/>
== Manager registered action ModuleLoad<br/>
== Manager registered action ModuleCheck<br/>
== Manager registered action AOCMessage<br/>
== Parsing '/etc/asterisk/manager.conf': == Found<br/>
== Parsing '/etc/asterisk/users.conf': == Found<br/>
== Parsing '/etc/asterisk/cdr.conf': == Found<br/>
<span class="error">[Sep 14 09:44:04]</span> NOTICE<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: cdr.c:1558 do_reload: CDR simple logging enabled.<br/>
– CEL logging disabled.<br/>
== Parsing '/etc/asterisk/dsp.conf': == Found<br/>
== Parsing '/etc/asterisk/udptl.conf': == Found<br/>
== UDPTL allocating from port range 4000 -> 4999<br/>
Asterisk PBX Core Initializing<br/>
Registering builtin applications:<br/>
== Registered custom function 'EXCEPTION'<br/>
== Registered custom function 'TESTTIME'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Answer" class="createlink">Answer</a><br/>
== Registered application 'Answer'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=BackGround" class="createlink">BackGround</a><br/>
== Registered application 'BackGround'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Busy" class="createlink">Busy</a><br/>
== Registered application 'Busy'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Congestion" class="createlink">Congestion</a><br/>
== Registered application 'Congestion'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=ExecIfTime" class="createlink">ExecIfTime</a><br/>
== Registered application 'ExecIfTime'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Goto" class="createlink">Goto</a><br/>
== Registered application 'Goto'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=GotoIf" class="createlink">GotoIf</a><br/>
== Registered application 'GotoIf'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=GotoIfTime" class="createlink">GotoIfTime</a><br/>
== Registered application 'GotoIfTime'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=ImportVar" class="createlink">ImportVar</a><br/>
== Registered application 'ImportVar'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Hangup" class="createlink">Hangup</a><br/>
== Registered application 'Hangup'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Incomplete" class="createlink">Incomplete</a><br/>
== Registered application 'Incomplete'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=NoOp" class="createlink">NoOp</a><br/>
== Registered application 'NoOp'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Proceeding" class="createlink">Proceeding</a><br/>
== Registered application 'Proceeding'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Progress" class="createlink">Progress</a><br/>
== Registered application 'Progress'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=RaiseException" class="createlink">RaiseException</a><br/>
== Registered application 'RaiseException'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=ResetCDR" class="createlink">ResetCDR</a><br/>
== Registered application 'ResetCDR'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Ringing" class="createlink">Ringing</a><br/>
== Registered application 'Ringing'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=SayAlpha" class="createlink">SayAlpha</a><br/>
== Registered application 'SayAlpha'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=SayDigits" class="createlink">SayDigits</a><br/>
== Registered application 'SayDigits'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=SayNumber" class="createlink">SayNumber</a><br/>
== Registered application 'SayNumber'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=SayPhonetic" class="createlink">SayPhonetic</a><br/>
== Registered application 'SayPhonetic'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Set" class="createlink">Set</a><br/>
== Registered application 'Set'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=MSet" class="createlink">MSet</a><br/>
== Registered application 'MSet'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=SetAMAFlags" class="createlink">SetAMAFlags</a><br/>
== Registered application 'SetAMAFlags'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=Wait" class="createlink">Wait</a><br/>
== Registered application 'Wait'<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&title=WaitExten" class="createlink">WaitExten</a><br/>
== Registered application 'WaitExten'<br/>
== Manager registered action ShowDialPlan<br/>
== Parsing '/etc/asterisk/indications.conf': == Found<br/>
– Registered indication country 'at'<br/>
– Registered indication country 'au'<br/>
– Registered indication country 'bg'<br/>
– Registered indication country 'br'<br/>
– Registered indication country 'be'<br/>
– Registered indication country 'ch'<br/>
– Registered indication country 'cl'<br/>
– Registered indication country 'cn'<br/>
– Registered indication country 'cz'<br/>
– Registered indication country 'de'<br/>
– Registered indication country 'dk'<br/>
– Registered indication country 'ee'<br/>
– Registered indication country 'es'<br/>
– Registered indication country 'fi'<br/>
– Registered indication country 'fr'<br/>
– Registered indication country 'gr'<br/>
– Registered indication country 'hu'<br/>
– Registered indication country 'il'<br/>
– Registered indication country 'in'<br/>
– Registered indication country 'it'<br/>
– Registered indication country 'lt'<br/>
– Registered indication country 'jp'<br/>
– Registered indication country 'mx'<br/>
– Registered indication country 'my'<br/>
– Registered indication country 'nl'<br/>
– Registered indication country 'no'<br/>
– Registered indication country 'nz'<br/>
– Registered indication country 'ph'<br/>
– Registered indication country 'pl'<br/>
– Registered indication country 'pt'<br/>
– Registered indication country 'ru'<br/>
– Registered indication country 'se'<br/>
– Registered indication country 'sg'<br/>
– Registered indication country 'th'<br/>
– Registered indication country 'uk'<br/>
– Registered indication country 'us'<br/>
– Registered indication country 'us-old'<br/>
– Registered indication country 'tw'<br/>
– Registered indication country 've'<br/>
– Registered indication country 'za'<br/>
– Setting default indication country to 'be'<br/>
== Registered application 'Bridge'<br/>
– Registered extension context 'parkedcalls'; registrar: features<br/>
– Added extension '700' priority 1 to parkedcalls<br/>
== Parsing '/etc/asterisk/features.conf': == Found<br/>
– Remove parkedcalls/700/1, registrar=features; con=parkedcalls(0x7fb5580184b0); con->root=0x7fb558018130<br/>
== Registered Feature 'testfeature'<br/>
== Mapping Feature 'testfeature' to app 'Playback(tt-monkeys)' with code '#9'<br/>
== Registered Feature 'nway-start'<br/>
== Mapping Feature 'nway-start' to app 'Macro(nway-start)' with code '**'<br/>
== Registered Feature 'nway-inv'<br/>
== Mapping Feature 'nway-inv' to app 'Macro(nway-ok)' with code '*1'<br/>
== Registered Feature 'nway-noinv'<br/>
== Mapping Feature 'nway-noinv' to app 'Macro(nway-notok)' with code '*0'<br/>
– Registered extension context 'parkedcalls'; registrar: features<br/>
– Added extension '700' priority 1 to parkedcalls<br/>
== Registered application 'ParkedCall'<br/>
== Registered application 'Park'<br/>
== Manager registered action ParkedCalls<br/>
== Manager registered action Park<br/>
== Manager registered action Bridge<br/>
<span class="error">[Sep 14 09:44:04]</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: db.c:115 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied<br/>
== Manager registered action DBGet<br/>
== Manager registered action DBPut<br/>
== Manager registered action DBDel<br/>
== Manager registered action DBDelTree<br/>
== Parsing '/etc/asterisk/enum.conf': == Found<br/>
== Registered application 'CallCompletionRequest'<br/>
== Registered application 'CallCompletionCancel'<br/>
<span class="error">[Sep 14 09:44:04]</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: ccss.c:4108 initialize_cc_max_requests: Could not find valid ccss.conf file. Using cc_max_requests default<br/>
Asterisk Dynamic Loader Starting:<br/>
== Parsing '/etc/asterisk/modules.conf': == Found<br/>
<span class="error">[Sep 14 09:44:04]</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: loader.c:1093 load_modules: Unable to open modules directory '/usr/lib/asterisk/modules'.<br/>
<span class="error">[Sep 14 09:44:04]</span> NOTICE<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: loader.c:1124 load_modules: 1 modules will be loaded.<br/>
<span class="error">[Sep 14 09:44:04]</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: loader.c:393 load_dynamic_module: Error loading module 'res_musiconhold.so': /usr/lib/asterisk/modules/res_musiconhold.so: cannot open shared object file: No such file or directory<br/>
<span class="error">[Sep 14 09:44:04]</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: loader.c:393 load_dynamic_module: Error loading module 'res_musiconhold.so': /usr/lib/asterisk/modules/res_musiconhold.so: cannot open shared object file: No such file or directory<br/>
<span class="error">[Sep 14 09:44:04]</span> WARNING<a href="/wiki/pages/createpage.action?spaceKey=AST&title=6589" class="createlink">6589</a>: loader.c:845 load_resource: Module 'res_musiconhold.so' could not be loaded.<br/>
== Parsing '/etc/asterisk/cli_permissions.conf': == Found<br/>
Asterisk Ready.<br/>
== Parsing '/etc/asterisk/cli.conf': == Found</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=18415794#comment-18415794">View Online</a>
|
<a id="reply-18415794" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?replyToComment=18415794#comment-18415794">Reply To This</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>