Josh North
Guru
- Joined
- Aug 5, 2014
- Messages
- 27
- Reaction score
- 11
Are you logged in as root? Should not have any permissions issues. I'm confused now
root@ip-172-31-21-167:/home/ubuntu# apt-get update && apt-get upgrade
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://archive.ubuntu.com trusty Release
Ign http://security.ubuntu.com trusty-security InRelease
Get:2 http://archive.ubuntu.com trusty-updates Release [59.7 kB]
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://security.ubuntu.com trusty-security Release
Hit http://security.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Get:3 http://archive.ubuntu.com trusty-updates/main Sources [129 kB]
Get:4 http://archive.ubuntu.com trusty-updates/universe Sources [88.2 kB]
Get:5 http://archive.ubuntu.com trusty-updates/main amd64 Packages [343 kB]
Get:6 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [214 kB]
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 835 kB in 2s (386 kB/s)
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@ip-172-31-21-167:/home/ubuntu# dpkg --configure -a
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-29-generic
Setting up dbus (1.6.18-0ubuntu4.2) ...
<< SYSTEM FROZEN HERE FOR A LONG TIME>> ...Ctrl+C
^Cdpkg: error processing package dbus (--configure):
subprocess installed post-installation script was interrupted
Setting up mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
<SYSTEM FROZEN HERE TOO>
<<
root@ip-172-31-21-167:/home/ubuntu# dpkg --configure -a --force-all
Setting up dbus (1.6.18-0ubuntu4.2) ...
start: Job is already running: dbus
invoke-rc.d: initscript dbus, action "start" failed.
dpkg: error processing package dbus (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up mysql-server-5.5 (5.5.40-0ubuntu0.14.04.1) ...
start: Job is already running: mysql
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up rsyslog (7.4.4-1ubuntu2.3) ...
The user `syslog' is already a member of `adm'.
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
start: Job is already running: rsyslog
invoke-rc.d: initscript rsyslog, action "restart" failed.
dpkg: error processing package rsyslog (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: mysql-server: dependency problems, but configuring anyway as you requested:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
Setting up mysql-server (5.5.40-0ubuntu0.14.04.1) ...
dpkg: systemd-services: dependency problems, but configuring anyway as you requested:
systemd-services depends on dbus; however:
Package dbus is not configured yet.
Setting up systemd-services (204-5ubuntu20.7) ...
Setting up libpam-systemd:amd64 (204-5ubuntu20.7) ...
start: Job is already running: systemd-logind
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: language-selector-common: dependency problems, but configuring anyway as you requested:
language-selector-common depends on dbus; however:
Package dbus is not configured yet.
Setting up language-selector-common (0.129.3) ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-sg.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-tw.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-mo.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-hk.conf ...
Installing new version of config file /etc/fonts/conf.avail/69-language-selector-zh-cn.conf ...
Errors were encountered while processing:
dbus
mysql-server-5.5
rsyslog
libpam-systemd:amd64
Just wanted to update... I relaunched a new Ubuntu Instance, ran the pbiaf install, etc.. reboot.
Installed from Pg1 - went without issues... was able to reboot, and then change teh avantfax passwd without issues... so i think its up
This might be the Sendmail issue:
http://pbxinaflash.com/community/index.php?threads/sendmail-on-ubuntu.15691/
cd /root
wget --no-check-certificate https://raw.githubusercontent.com/joshnorth/UbuntuPIAF/master/FixAptIssues.sh
chmod +x /root/FixAptIssues.sh
/root/FixAptIssues.sh
Hackish code to fix apt issues as I find them... so far this only has the fix for the hangup on the udev installation. As I run into more packages that hang I will add them to this script. The script DOES check to see if it needs to be run. Ward - I don't know how well this will play with your login/auto-update script. You may just want to copy the relevant 3 lines that check and replace the lines in the postinst script and use them in your update system - then, if/when I have to add more fixes they can be separate fixes in your program.
So - running this should not hurt anyone's system but it will provide a quick fix if your apt-get upgrade is hanging or giving you udev errors.
EDIT TO ADD: You may have to run this each time a new udev is released - so if you see apt-get upgrade fail, then run this script and do apt-get upgrade again.
Code:cd /root wget --no-check-certificate https://raw.githubusercontent.com/joshnorth/UbuntuPIAF/master/FixAptIssues.sh chmod +x /root/FixAptIssues.sh /root/FixAptIssues.sh
root@pbxbox:/var/lib/dpkg/info# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libpam-systemd:amd64 (204-5ubuntu20.10) ...
(Pressed Enter)
start: Job is already running: systemd-logind
invoke-rc.d: initscript systemd-logind, action "start" failed.
dpkg: error processing package libpam-systemd:amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libpam-systemd:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Works great! thanks but still having trouble with libpam-systemd:amd64
Code:root@pbxbox:/var/lib/dpkg/info# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up libpam-systemd:amd64 (204-5ubuntu20.10) ... (Pressed Enter) start: Job is already running: systemd-logind invoke-rc.d: initscript systemd-logind, action "start" failed. dpkg: error processing package libpam-systemd:amd64 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: libpam-systemd:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)
Not so fast.....I just 'apt-get update && apt-get upgrade' my BBB running IPBX with Avantfax and it hosed the server. I realize the IFAX script was not intended to be used on the BBB but it worked well before I did the update. I'm restoring from backup but I wanted to let people know that it might still be an issue for some.
When you mean "hosed", you mean that asterisk cannot start because of a config file issue?
Edit: this is on 14.04.2
You know it's been like forever ago since I posted that. It's kind of fuzzy now to tell you the truth. Yes, I think Asterisk and FreePBX wouldn't start. I do know there were Linux security / bug issues as the time so maybe that had something to do with it. I've moved platforms and on to a new set challenges (er I mean disappointments ) so I can't be of much assistance regarding the whole issue.
well as stated previously, you need to run terminal and go root and typeI understand, though other than this issue, Incredible PBX 12 works fine (as long as you don't run the fax script), I may try to see if there is a way to install incredible pbx 12 on centos 6.5...via PIAF Black....
I think you just need to update that CDR module (and others) via Module Admin.well as stated previously, you need to run terminal and go root and type
However, now we have a problem with incrediblefax on asterisk 12: pear uninstall db, pear install db-1.7.14
Is it that critical?
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.