LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2021, 07:56 AM   #1
qeriyo
LQ Newbie
 
Registered: Oct 2021
Posts: 2

Rep: Reputation: Disabled
dpkg error when apt-get upgrade


Hi,

I am getting the following errors when I try and upgrade. The folloeing is the out put from updating.

qeriyo@qeriyo:~$ sudo 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.
3 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 amavisd-new (1:2.11.0-6.1ubuntu1) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
● amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: failed (Result: exit-code) since Wed 2021-10-20 12:45:52 PST; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 18038 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Oct 20 12:45:52 qeriyo amavis[18075]: head: cannot open '/etc/mailname' for reading: No such file or directory
Oct 20 12:45:52 qeriyo amavis[18066]: The value of variable $myhostname is "qeriyo", but should have been
Oct 20 12:45:52 qeriyo amavis[18066]: a fully qualified domain name; perhaps uname(3) did not provide such.
Oct 20 12:45:52 qeriyo amavis[18066]: You must explicitly assign a FQDN of this host to variable $myhostname
Oct 20 12:45:52 qeriyo amavis[18066]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Oct 20 12:45:52 qeriyo amavis[18066]: network name!
Oct 20 12:45:52 qeriyo amavis[18038]: (failed).
Oct 20 12:45:52 qeriyo systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Oct 20 12:45:52 qeriyo systemd[1]: amavis.service: Failed with result 'exit-code'.
Oct 20 12:45:52 qeriyo systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
dpkg: error processing package amavisd-new (--configure):
installed amavisd-new package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of amavisd-milter:
amavisd-milter depends on amavisd-new; however:
Package amavisd-new is not configured yet.

dpkg: error processing package amavisd-milter (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amavisd-milter-dbgsym:
amavisd-milter-dbgsym depends on amavisd-milter (= 1.5.0-5); however:
Package amavisd-milter is not configured yet.

dpkg: error processing package amavisd-milter-dbgsym (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
amavisd-new
amavisd-milter
amavisd-milter-dbgsym
E: Sub-process /usr/bin/dpkg returned an error code (1)
qeriyo@qeriyo:~$ /etc/amavis/conf.d/05-node_id
bash: /etc/amavis/conf.d/05-node_id: Permission denied
qeriyo@qeriyo:~$ sudo /etc/amavis/conf.d/05-node_id
sudo: /etc/amavis/conf.d/05-node_id: command not found
qeriyo@qeriyo:~$ sudo apt-get upgrade zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
qeriyo@qeriyo:~$ sudo apt-get install zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
qeriyo@qeriyo:~$ dpkg --configure -a
dpkg: error: requested operation requires superuser privilege
qeriyo@qeriyo:~$ sudo dpkg --configure -a
Setting up amavisd-new (1:2.11.0-6.1ubuntu1) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
● amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: failed (Result: exit-code) since Wed 2021-10-20 13:06:20 PST; 6ms ago
Docs: man:systemd-sysv-generator(8)
Process: 20381 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Oct 20 13:06:19 qeriyo amavis[20400]: head: cannot open '/etc/mailname' for reading: No such file or directory
Oct 20 13:06:20 qeriyo amavis[20395]: The value of variable $myhostname is "qeriyo", but should have been
Oct 20 13:06:20 qeriyo amavis[20395]: a fully qualified domain name; perhaps uname(3) did not provide such.
Oct 20 13:06:20 qeriyo amavis[20395]: You must explicitly assign a FQDN of this host to variable $myhostname
Oct 20 13:06:20 qeriyo amavis[20395]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Oct 20 13:06:20 qeriyo amavis[20395]: network name!
Oct 20 13:06:20 qeriyo amavis[20381]: (failed).
Oct 20 13:06:20 qeriyo systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Oct 20 13:06:20 qeriyo systemd[1]: amavis.service: Failed with result 'exit-code'.
Oct 20 13:06:20 qeriyo systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
dpkg: error processing package amavisd-new (--configure):
installed amavisd-new package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of amavisd-milter:
amavisd-milter depends on amavisd-new; however:
Package amavisd-new is not configured yet.

dpkg: error processing package amavisd-milter (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amavisd-milter-dbgsym:
amavisd-milter-dbgsym depends on amavisd-milter (= 1.5.0-5); however:
Package amavisd-milter is not configured yet.

dpkg: error processing package amavisd-milter-dbgsym (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
amavisd-new
amavisd-milterroblem
amavisd-milter-dbgsym
qeriyo@qeriyo:~$

I have google this problem and tried several ways to fix this, but nothing seems to work.

Thanks in advance for your help.
 
Old 10-20-2021, 08:03 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
Hi, and welcome here, at LQ
did you try to create that missing file? https://wiki.debian.org/EtcMailName
 
Old 11-08-2021, 04:15 PM   #3
qeriyo
LQ Newbie
 
Registered: Oct 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by qeriyo View Post
Hi,

I am getting the following errors when I try and upgrade. The folloeing is the out put from updating.

qeriyo@qeriyo:~$ sudo 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.
3 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 amavisd-new (1:2.11.0-6.1ubuntu1) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
● amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: failed (Result: exit-code) since Wed 2021-10-20 12:45:52 PST; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 18038 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Oct 20 12:45:52 qeriyo amavis[18075]: head: cannot open '/etc/mailname' for reading: No such file or directory
Oct 20 12:45:52 qeriyo amavis[18066]: The value of variable $myhostname is "qeriyo", but should have been
Oct 20 12:45:52 qeriyo amavis[18066]: a fully qualified domain name; perhaps uname(3) did not provide such.
Oct 20 12:45:52 qeriyo amavis[18066]: You must explicitly assign a FQDN of this host to variable $myhostname
Oct 20 12:45:52 qeriyo amavis[18066]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Oct 20 12:45:52 qeriyo amavis[18066]: network name!
Oct 20 12:45:52 qeriyo amavis[18038]: (failed).
Oct 20 12:45:52 qeriyo systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Oct 20 12:45:52 qeriyo systemd[1]: amavis.service: Failed with result 'exit-code'.
Oct 20 12:45:52 qeriyo systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
dpkg: error processing package amavisd-new (--configure):
installed amavisd-new package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of amavisd-milter:
amavisd-milter depends on amavisd-new; however:
Package amavisd-new is not configured yet.

dpkg: error processing package amavisd-milter (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amavisd-milter-dbgsym:
amavisd-milter-dbgsym depends on amavisd-milter (= 1.5.0-5); however:
Package amavisd-milter is not configured yet.

dpkg: error processing package amavisd-milter-dbgsym (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
amavisd-new
amavisd-milter
amavisd-milter-dbgsym
E: Sub-process /usr/bin/dpkg returned an error code (1)
qeriyo@qeriyo:~$ /etc/amavis/conf.d/05-node_id
bash: /etc/amavis/conf.d/05-node_id: Permission denied
qeriyo@qeriyo:~$ sudo /etc/amavis/conf.d/05-node_id
sudo: /etc/amavis/conf.d/05-node_id: command not found
qeriyo@qeriyo:~$ sudo apt-get upgrade zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
qeriyo@qeriyo:~$ sudo apt-get install zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
qeriyo@qeriyo:~$ dpkg --configure -a
dpkg: error: requested operation requires superuser privilege
qeriyo@qeriyo:~$ sudo dpkg --configure -a
Setting up amavisd-new (1:2.11.0-6.1ubuntu1) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
● amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: failed (Result: exit-code) since Wed 2021-10-20 13:06:20 PST; 6ms ago
Docs: man:systemd-sysv-generator(8)
Process: 20381 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Oct 20 13:06:19 qeriyo amavis[20400]: head: cannot open '/etc/mailname' for reading: No such file or directory
Oct 20 13:06:20 qeriyo amavis[20395]: The value of variable $myhostname is "qeriyo", but should have been
Oct 20 13:06:20 qeriyo amavis[20395]: a fully qualified domain name; perhaps uname(3) did not provide such.
Oct 20 13:06:20 qeriyo amavis[20395]: You must explicitly assign a FQDN of this host to variable $myhostname
Oct 20 13:06:20 qeriyo amavis[20395]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Oct 20 13:06:20 qeriyo amavis[20395]: network name!
Oct 20 13:06:20 qeriyo amavis[20381]: (failed).
Oct 20 13:06:20 qeriyo systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Oct 20 13:06:20 qeriyo systemd[1]: amavis.service: Failed with result 'exit-code'.
Oct 20 13:06:20 qeriyo systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
dpkg: error processing package amavisd-new (--configure):
installed amavisd-new package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of amavisd-milter:
amavisd-milter depends on amavisd-new; however:
Package amavisd-new is not configured yet.

dpkg: error processing package amavisd-milter (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amavisd-milter-dbgsym:
amavisd-milter-dbgsym depends on amavisd-milter (= 1.5.0-5); however:
Package amavisd-milter is not configured yet.

dpkg: error processing package amavisd-milter-dbgsym (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
amavisd-new
amavisd-milterroblem
amavisd-milter-dbgsym
qeriyo@qeriyo:~$
192.168.l.l routerlogin 192.168.0.1
I have google this problem and tried several ways to fix this, but nothing seems to work.

Thanks in advance for your help.
Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get dpkg error 5%dpkg akhund_bilal Debian 17 01-16-2022 08:25 PM
[SOLVED] apt-get upgrade error - E: Sub-process /usr/bin/dpkg returned an error code (1) l_urch Debian 1 08-23-2012 06:24 PM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
[SOLVED] DPKG/apt-get broken - GLIBC_2.6 not found (required by dpkg) Alize Linux - Software 15 05-23-2011 04:25 AM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration