LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-10-2020, 03:15 PM   #1
cmoore90706
LQ Newbie
 
Registered: Nov 2020
Posts: 7

Rep: Reputation: Disabled
Smile dpkg failed to start


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

charles@charles-Latitude-E6440:~$ 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 Tue 2020-11-10 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)

Nov 10 12:45:52 charles-Latitude-E6440 amavis[18075]: head: cannot open '/etc/mailname' for reading: No such file or directory
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: The value of variable $myhostname is "charles-Latitude-E6440", but should have been
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: a fully qualified domain name; perhaps uname(3) did not provide such.
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: You must explicitly assign a FQDN of this host to variable $myhostname
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: network name!
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18038]: (failed).
Nov 10 12:45:52 charles-Latitude-E6440 systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Nov 10 12:45:52 charles-Latitude-E6440 systemd[1]: amavis.service: Failed with result 'exit-code'.
Nov 10 12:45:52 charles-Latitude-E6440 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)
charles@charles-Latitude-E6440:~$ /etc/amavis/conf.d/05-node_id
bash: /etc/amavis/conf.d/05-node_id: Permission denied
charles@charles-Latitude-E6440:~$ sudo /etc/amavis/conf.d/05-node_id
sudo: /etc/amavis/conf.d/05-node_id: command not found
charles@charles-Latitude-E6440:~$ sudo apt-get upgrade zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
charles@charles-Latitude-E6440:~$ sudo apt-get install zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
charles@charles-Latitude-E6440:~$ dpkg --configure -a
dpkg: error: requested operation requires superuser privilege
charles@charles-Latitude-E6440:~$ 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 Tue 2020-11-10 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)

Nov 10 13:06:19 charles-Latitude-E6440 amavis[20400]: head: cannot open '/etc/mailname' for reading: No such file or directory
Nov 10 13:06:20 charles-Latitude-E6440 amavis[20395]: The value of variable $myhostname is "charles-Latitude-E6440", but should have been
Nov 10 13:06:20 charles-Latitude-E6440 amavis[20395]: a fully qualified domain name; perhaps uname(3) did not provide such.
Nov 10 13:06:20 charles-Latitude-E6440 amavis[20395]: You must explicitly assign a FQDN of this host to variable $myhostname
Nov 10 13:06:20 charles-Latitude-E6440 amavis[20395]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Nov 10 13:06:20 charles-Latitude-E6440 amavis[20395]: network name!
Nov 10 13:06:20 charles-Latitude-E6440 amavis[20381]: (failed).
Nov 10 13:06:20 charles-Latitude-E6440 systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Nov 10 13:06:20 charles-Latitude-E6440 systemd[1]: amavis.service: Failed with result 'exit-code'.
Nov 10 13:06:20 charles-Latitude-E6440 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
charles@charles-Latitude-E6440:~$

I have google this problem and tried several ways to fix this, but nothing seems to work. I appreciate the help. If you need more information let me know
 
Old 11-10-2020, 03:56 PM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: The value of variable $myhostname is "charles-Latitude-E6440", but should have been
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: a fully qualified domain name; perhaps uname(3) did not provide such.
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: You must explicitly assign a FQDN of this host to variable $myhostname
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18066]: network name!
Nov 10 12:45:52 charles-Latitude-E6440 amavis[18038]: (failed).
Nov 10 12:45:52 charles-Latitude-E6440 systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Your hostname needs fixing.
 
1 members found this post helpful.
  


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
[SOLVED] E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. E: _cache->open() failed, please report. Craig5 Linux - Newbie 6 05-08-2019 02:52 AM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
dpkg: dpkg - error: PATH is not set basis1980 Linux - Software 1 12-07-2007 04:53 PM

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

All times are GMT -5. The time now is 10:47 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