× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Failed to uninstall iredmail

gn00347026
Guide

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:~#

Message 1 of 6

Accepted Solutions
BrianL2
NETGEAR Employee Retired

Re: Failed to uninstall iredmail

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

View solution in original post

Message 6 of 6

All Replies
mdgm-ntgr
NETGEAR Employee Retired

Re: Failed to uninstall iredmail

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

Message 2 of 6
gn00347026
Guide

Re: Failed to uninstall iredmail

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...

Message 3 of 6
gn00347026
Guide

Re: Failed to uninstall iredmail

Any suggestion?

Message 4 of 6
gn00347026
Guide

Re: Failed to uninstall iredmail

Finally, i do the factory default on my RN312, thanks everyone~

Message 5 of 6
BrianL2
NETGEAR Employee Retired

Re: Failed to uninstall iredmail

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

Message 6 of 6
Top Contributors
Discussion stats
  • 5 replies
  • 7304 views
  • 0 kudos
  • 3 in conversation
Announcements