NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

gn00347026's avatar
Jun 20, 2016
Solved

Failed to uninstall iredmail

Hi everyone,

I failed to uninstall the iredmail via frontview or ssh, anyone encountered this issue before?

 

 

 

 

root@nas-6F-06-D6:~# apt-get -y purge iredmail-app
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  iredmail-app*
0 upgraded, 0 newly installed, 1 to remove and 15 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 20415 files and directories currently installed.)
Removing iredmail-app ...
+ set -e
+ PKG=company-service-config
+ [ remove = remove ]
+ echo stopping postfix server
stopping postfix server
+ postfix stop
postfix/postfix-script: fatal: the Postfix mail system is not running
dpkg: error processing iredmail-app (--purge):
 subprocess installed pre-removal script returned error exit status 1
+ set -e
+ grep arm /etc/os_version
+ [ ! -z  ]
+ echo AMD
AMD
+ [ ! -e /usr/sbin/postfix ]
+ [ -d /arm/ ]
+ [ -d /x86/ ]
+ exit 1
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 iredmail-app
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nas-6F-06-D6:~#

  • BrianL2's avatar
    BrianL2
    Jun 21, 2016

    Hi gn00347026,

     

    We appreciate your feedback and for letting us know your issue is resolved by performing a full factory reset. You can now mark this thread closed by clicking the "Accept as Solution" button in one of the responses that you received. With regard to your other question about mounting disks from NV+ to RN314, read this article.  

     

     

    Kind regards,

     

    BrianL
    NETGEAR Community Team

5 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired

    Perhaps try installing it over the top of itself then try removing it again.

    • gn00347026's avatar
      gn00347026
      Guide

      tried before, no luck

       

      Jun 20 11:25:12 nas-6F-06-D6 readynasd[2481]: + sleep 1
      Jun 20 11:25:13 nas-6F-06-D6 readynasd[2481]: + date
      Jun 20 11:25:13 nas-6F-06-D6 readynasd[2481]: + echo START(/tmp/iredmail-app...6
      Jun 20 11:25:13 nas-6F-06-D6 readynasd[2481]: + DEBIAN_FRONTEND=noninteractive
      Jun 20 11:25:13 nas-6F-06-D6 readynasd[2481]: + export DEBIAN_FRONTEND
      Jun 20 11:25:13 nas-6F-06-D6 readynasd[2481]: + apt_wait
      Jun 20 11:25:13 nas-6F-06-D6 readynasd[2481]: + dpkg --configure -a
      Jun 20 11:25:13 nas-6F-06-D6 readynasd[2481]: + apt-get update
      Jun 20 11:25:14 nas-6F-06-D6 apache_access[29834]: 192.168.1.34 "POST /dbbrok...
      Jun 20 11:25:20 nas-6F-06-D6 readynasd[2481]: W: An error occurred during th...>
      Jun 20 11:25:20 nas-6F-06-D6 readynasd[2481]: W: Failed to fetch http://mirr...e
      Jun 20 11:25:20 nas-6F-06-D6 readynasd[2481]: W: Some index files failed to ....
      Jun 20 11:25:20 nas-6F-06-D6 readynasd[2481]: + /frontview/bin/fv-dpkginstal...0
      Jun 20 11:25:20 nas-6F-06-D6 readynasd[2481]: + dpkg --info /tmp/iredmail-ap...b
      Jun 20 11:25:20 nas-6F-06-D6 readynasd[2481]: + echo Successfully installed ...b
      Jun 20 11:25:20 nas-6F-06-D6 readynasd[2481]: + dpkg --force-confnew -i /tmp...b
      Jun 20 11:25:50 nas-6F-06-D6 systemd[1]: Reloading.
      Jun 20 11:25:50 nas-6F-06-D6 apache2[30324]: [Mon Jun 20 11:25:50 2016] [war....
      Jun 20 11:25:50 nas-6F-06-D6 apache2[30324]: [Mon Jun 20 11:25:50 2016] [war....
      Jun 20 11:25:50 nas-6F-06-D6 apache2[30324]: [warn] RSA server certificate C...?
      Jun 20 11:25:51 nas-6F-06-D6 systemd[1]: PID file /var/run/apache2.pid not r....
      Jun 20 11:25:51 nas-6F-06-D6 apache2[30328]: [warn] RSA server certificate C...?
      Jun 20 11:25:51 nas-6F-06-D6 readynasd[2481]: + apt-get install -f
      Jun 20 11:25:51 nas-6F-06-D6 readynasd[2481]: Reading package lists...
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: Building dependency tree...
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: Reading state information...
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: 0 upgraded, 0 newly installed,....
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: 1 not fully installed or removed.
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: After this operation, 0 B of a....
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: Setting up iredmail-app (1.0.3....
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: + set -e
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: + grep arm /etc/os_version
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: + [ ! -z  ]
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: + echo AMD
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: AMD
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: + [ ! -e /usr/sbin/postfix ]
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: + [ -d /arm/ ]
      Jun 20 11:25:52 nas-6F-06-D6 readynasd[2481]: + [ -d /x86/ ]
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + ps -ef
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep dovecot
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + wc -l
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep -v grep
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + DOVECOTPROCESS_NUM1=0
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + [ 0 -gt 0 ]
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + ps -ef
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep postfix
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep -v grep
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + wc -l
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + PROCESS_NUM2=0
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + [ 0 -gt 0 ]
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + DNAME=.iredadmin.com
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + hostname
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + HOSTN=nas-6F-06-D6
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + pattrn=nas-6F-06-D6.iredadmi...m
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + file=/etc/hosts
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + ifconfig
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep+  inet addr:
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: cut -d: -f2
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + cut -d  -f1
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + head -n1
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep -v 127.0.0.1
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + IPADDR=192.168.1.153
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep nas-6F-06-D6.iredadmin....s
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: 5.1.22.225 nas-6F-06-D6.iredad...6
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + cp /etc/hosts /var/spool/pos...c
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + cp /etc/localtime /var/spool...c
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + cp /etc/nsswitch.conf /var/s...c
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + cp /etc/resolv.conf /var/spo...c
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + cp /etc/services /var/spool/...c
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + [ ! -f /etc/pam.d/smtp ]
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + sed -i s/#ssl = yes/ssl = ye...f
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + cp /etc/apache2/sites-availa...k
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep -i iredadmin /etc/group
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + [ ! -z iredadmin:x:1000: ]
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + echo Not adding iredadmin to...s
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: Not adding iredadmin to group ...s
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + grep -i iredadmin /etc/passwd
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + [ ! -z iredadmin:x:1000:1000...]
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + echo Not adding iredadmin us...s
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: Not adding iredadmin user as i...s
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + chmod -R 0755 /usr/share/apa...2
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + ln -sf /usr/share/apache2/iR...n
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + chown iredadmin:iredadmin /u...i
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + chmod 777 /usr/share/apache2...i
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + /etc/init.d/apache2 restart
      Jun 20 11:25:53 nas-6F-06-D6 systemd[1]: Reloading.
      Jun 20 11:25:53 nas-6F-06-D6 apache2[30491]: [Mon Jun 20 11:25:53 2016] [war....
      Jun 20 11:25:53 nas-6F-06-D6 apache2[30491]: [Mon Jun 20 11:25:53 2016] [war....
      Jun 20 11:25:53 nas-6F-06-D6 apache2[30491]: [warn] RSA server certificate C...?
      Jun 20 11:25:53 nas-6F-06-D6 systemd[1]: PID file /var/run/apache2.pid not r....
      Jun 20 11:25:53 nas-6F-06-D6 apache2[30495]: [warn] RSA server certificate C...?
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: Restarting apache2 (via system....
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: + mysql -u root
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: ERROR 2002 (HY000): Can't conn...)
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: dpkg: error processing iredmai...:
      Jun 20 11:25:53 nas-6F-06-D6 readynasd[2481]: subprocess installed post-inst...1
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: Errors were encountered while ...:
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: iredmail-app
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: E: Sub-process /usr/bin/dpkg r...)
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: + dpkg -P iredmail-app
      Jun 20 11:25:54 nas-6F-06-D6 apache_access[30497]: 192.168.1.34 "POST /dbbrok...
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: (Reading database ... 20415 fi...)
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: Removing iredmail-app ...
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: + set -e
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: + PKG=company-service-config
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: + [ remove = remove ]
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: + echo stopping postfix server
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: stopping postfix server
      Jun 20 11:25:54 nas-6F-06-D6 readynasd[2481]: + postfix stop
      Jun 20 11:25:54 nas-6F-06-D6 postfix[30513]: fatal: file /etc/postfix/main.c...x
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: dpkg: error processing iredmai...:
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: subprocess installed pre-remov...1
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + set -e
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + grep arm /etc/os_version
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + [ ! -z  ]
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + echo AMD
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: AMD
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + [ ! -e /usr/sbin/postfix ]
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + [ -d /arm/ ]
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + [ -d /x86/ ]
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: + exit 1
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: dpkg: error while cleaning up:
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: subprocess installed post-inst...1
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: Errors were encountered while ...:
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: iredmail-app
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: dpkg-query: error: error writi...e
      Jun 20 11:25:55 nas-6F-06-D6 readynasd[2481]: Cannot install application ire....
      Jun 20 11:25:55 nas-6F-06-D6 apache_access[30497]: 192.168.1.34 "POST /dbbrok...
      Jun 20 11:25:58 nas-6F-06-D6 apache2[30615]: [Mon Jun 20 11:25:58 2016] [war....
      Jun 20 11:25:58 nas-6F-06-D6 apache2[30615]: [Mon Jun 20 11:25:58 2016] [war....
      Jun 20 11:25:58 nas-6F-06-D6 apache2[30615]: [warn] RSA server certificate C...?
      Jun 20 11:25:58 nas-6F-06-D6 systemd[1]: PID file /var/run/apache2.pid not r....
      Jun 20 11:25:58 nas-6F-06-D6 apache2[30619]: [warn] RSA server certificate C...?
      Jun 20 11:26:00 nas-6F-06-D6 apache_access[30621]: 192.168.1.34 "POST /dbbrok...

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More