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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-01-2017, 09:53 PM
|
#1
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Rep:
|
Error in apt-get and postfix
Postfix won't start on my raspbain computer. Also about the same time my apt-get started to fail. I've include the details below:
Any thoughts as to what it might be?
pi@flav1:~ $ sudo journalctl -xn
-- Logs begin at Thu 2017-06-01 21:06:50 EDT, end at Thu 2017-06-01 21:10:42 EDT. --
Jun 01 21:10:40 flav1 postfix[1400]: Starting Postfix Mail Transport Agent: postfixSegmentation fault
Jun 01 21:10:40 flav1 systemd[1]: postfix.service: control process exited, code=exited status=139
Jun 01 21:10:40 flav1 systemd[1]: Failed to start LSB: Postfix Mail Transport Agent.
-- Subject: Unit postfix.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit postfix.service has failed.
--
-- The result is failed.
Jun 01 21:10:40 flav1 systemd[1]: Dependency failed for Mail Transport Agent.
-- Subject: Unit mail-transport-agent.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit mail-transport-agent.target has failed.
--
-- The result is dependency.
Jun 01 21:10:40 flav1 systemd[1]: Unit postfix.service entered failed state.
Jun 01 21:10:40 flav1 sudo[1394]: pam_unix(sudo:session): session closed for user root
Jun 01 21:10:41 flav1 sshd[1386]: Failed password for invalid user root from 111.73.46.198 port 2834 ssh2
Jun 01 21:10:42 flav1 sudo[1462]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
Jun 01 21:10:42 flav1 sudo[1462]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
pi@flav1:~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
udev
The following packages will be upgraded:
udev
1 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
5 not fully installed or removed.
Need to get 0 B/850 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 122659 files and directories currently installed.)
Preparing to unpack .../udev_215-17+deb8u7_armhf.deb ...
Segmentation fault
dpkg: error processing archive /var/cache/apt/archives/udev_215-17+deb8u7_armhf.deb (--unpack):
subprocess new pre-installation script returned error exit status 139
insserv: warning: script 'K01debian.noip2.sh' missing LSB tags and overrides
insserv: warning: script 'debian.noip2.sh' missing LSB tags and overrides
insserv: warning: script 'K01debian.noip2.sh' missing LSB tags and overrides
insserv: warning: script 'debian.noip2.sh' missing LSB tags and overrides
Errors were encountered while processing:
/var/cache/apt/archives/udev_215-17+deb8u7_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
|
|
|
06-02-2017, 07:52 AM
|
#2
|
Member
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229
Rep:
|
Segmentation fault should indicate that there is memory access violation. So, either give a shot at fsck, or try new SD card.
|
|
|
06-02-2017, 04:38 PM
|
#3
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Hi c0de3,
Welcome to the forum!
Did you recently perform an upgrade?
|
|
|
06-05-2017, 08:38 AM
|
#4
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Original Poster
Rep:
|
Each weekend (or so) I run a apt-get update and a apt-get upgrade. It is very possible that I had done that shortly before this stopped working. The problem is it took me a day or so to notice it was done. I use this as a headless email server.
I'm going to have the memory card pulled from the device and brought to me this week. I was thinking I'd have to try and clone the card to a new one? Hopefully the segmentation fault doesn't break that also...
I'm open to any other tips or suggestions! Thanks!
Quote:
Originally Posted by AwesomeMachine
Hi c0de3,
Welcome to the forum!
Did you recently perform an upgrade?
|
|
|
|
06-05-2017, 08:58 AM
|
#5
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
When you next get a chance, run:
Code:
dpkg -l | grep -v '^.i'
This will show all the packages that are neither uninstalled or properly installed, and thus highlight packages that are in an improperly installed state.
|
|
|
06-05-2017, 05:20 PM
|
#6
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Original Poster
Rep:
|
Thanks for the assistance! Here is what that command produced:
Code:
pi@flav1:~ $ dpkg -l | grep -v '^.i'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================-=========================================-============-==================================================================================================
iU libc-dev-bin 2.19-18+deb8u9 armhf GNU C Library: Development binaries
iU libc6-dbg:armhf 2.19-18+deb8u9 armhf GNU C Library: detached debugging symbols
iU libc6-dev:armhf 2.19-18+deb8u9 armhf GNU C Library: Development Libraries and Header Files
iU libtirpc1:armhf 0.2.5-1+deb8u1 armhf transport-independent RPC library
iU rpcbind 0.2.1-6+deb8u2 armhf converts RPC program numbers into universal addresses
I'm afraid I don't know if this is good or bad, I'm guessing not great...
Quote:
Originally Posted by hydrurga
When you next get a chance, run:
Code:
dpkg -l | grep -v '^.i'
This will show all the packages that are neither uninstalled or properly installed, and thus highlight packages that are in an improperly installed state.
|
|
|
|
06-05-2017, 05:28 PM
|
#7
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Ok. Thanks. It looks possible that an upgrade command was interrupted somehow. The annoying thing is that these can be reasonably important packages.
Before we sort that out, can we just check your software sources?
cat /etc/apt/sources.list{,.d/*}
|
|
|
06-05-2017, 06:04 PM
|
#8
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Original Poster
Rep:
|
Here we go:
Code:
pi@flav1:~ $ cat /etc/apt/sources.list{,.d/*}
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspberrypi.org/debian/ jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ jessie main ui
Quote:
Originally Posted by hydrurga
Ok. Thanks. It looks possible that an upgrade command was interrupted somehow. The annoying thing is that these can be reasonably important packages.
Before we sort that out, can we just check your software sources?
cat /etc/apt/sources.list{,.d/*}
|
|
|
|
06-05-2017, 06:10 PM
|
#9
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Ok. I'm unused to the Raspbian repos but there certainly doesn't appear to be any distro version clashes in there. Good.
Let's start by using a small sledgehammer to crack a nut:
Code:
sudo apt-get install --reinstall libc-dev-bin
If that works, repeat for the other four files that were found to marked "iU".
If the initial reinstall fails, or all five reinstalls succeed, try the same command for the udev package.
|
|
|
06-05-2017, 08:39 PM
|
#10
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Original Poster
Rep:
|
Thanks for the continued help!
I ran the command on each of the iU entries. They all fail with:
$ sudo apt-get install --reinstall rpcbind
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
udev : Depends: libudev1 (= 215-17+deb8u6) but 215-17+deb8u7 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So I tried it with udev, got something different with this one:
Code:
$ sudo apt-get install --reinstall udev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
udev
1 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
5 not fully installed or removed.
Need to get 0 B/850 kB of archives.
After this operation, 0 B of additional disk space will be used.
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 122659 files and directories currently installed.)
Preparing to unpack .../udev_215-17+deb8u7_armhf.deb ...
Segmentation fault
dpkg: error processing archive /var/cache/apt/archives/udev_215-17+deb8u7_armhf.deb (--unpack):
subprocess new pre-installation script returned error exit status 139
insserv: warning: script 'K01debian.noip2.sh' missing LSB tags and overrides
insserv: warning: script 'debian.noip2.sh' missing LSB tags and overrides
insserv: warning: script 'K01debian.noip2.sh' missing LSB tags and overrides
insserv: warning: script 'debian.noip2.sh' missing LSB tags and overrides
Errors were encountered while processing:
/var/cache/apt/archives/udev_215-17+deb8u7_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Quote:
Originally Posted by hydrurga
Ok. I'm unused to the Raspbian repos but there certainly doesn't appear to be any distro version clashes in there. Good.
Let's start by using a small sledgehammer to crack a nut:
Code:
sudo apt-get install --reinstall libc-dev-bin
If that works, repeat for the other four files that were found to marked "iU".
If the initial reinstall fails, or all five reinstalls succeed, try the same command for the udev package.
|
|
|
|
06-06-2017, 01:06 AM
|
#11
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
Ok. The problem seems to be the No-IP script which is still trying to use pre-systemd commands when Debian is now systemd. I'm not quite sure why this has suddenly hit you now.
See https://askubuntu.com/questions/8352...my-init-script for a little info.
If it's ok with you, we need to strip out the No-IP stuff and then reattempt the reinstalls/upgrades.
Do you have any notes as to how you installed No-IP (links to instructions etc.?).
If not, see how this goes: http://tehgentoonoob.blogspot.co.uk/...n-xubuntu.html
|
|
|
06-06-2017, 07:47 AM
|
#12
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Original Poster
Rep:
|
Thanks I should be able to find the notes I worked from. I think I just followed their website. I'll try that tonight! Thanks for continuing to help!
I'll post back this evening.
Quote:
Originally Posted by hydrurga
|
|
|
|
06-06-2017, 06:55 PM
|
#13
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Original Poster
Rep:
|
Okay, here are the directions I followed:
http://www.noip.com/support/knowledg...update-client/
So do I need to uninstall this or just stop the services? I know how to stop the services but I'm not sure how to uninstall it because I installed it via the make and make install? Any suggestions?
Quote:
Originally Posted by c0de3
Thanks I should be able to find the notes I worked from. I think I just followed their website. I'll try that tonight! Thanks for continuing to help!
I'll post back this evening.
|
|
|
|
06-06-2017, 07:04 PM
|
#14
|
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
|
I would try and excise it as much as possible (you'll be reinstalling it afterwards).
Not being able to find uninstall instructions in the No-IP knowledge base, why don't you try working through the steps in that link I gave you http://tehgentoonoob.blogspot.co.uk/...n-xubuntu.html and see how much of it is relevant...
|
|
|
06-06-2017, 07:30 PM
|
#15
|
LQ Newbie
Registered: Jun 2017
Posts: 13
Original Poster
Rep:
|
Okay, I stopped the process. Then I removed the scripts from all the rcx.d directory and the init.d directory.
Stopped that error, but still get this:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
udev
The following packages will be upgraded:
udev
1 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
5 not fully installed or removed.
Need to get 0 B/850 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 122659 files and directories currently installed.)
Preparing to unpack .../udev_215-17+deb8u7_armhf.deb ...
Segmentation fault
dpkg: error processing archive /var/cache/apt/archives/udev_215-17+deb8u7_armhf.deb (--unpack):
subprocess new pre-installation script returned error exit status 139
Errors were encountered while processing:
/var/cache/apt/archives/udev_215-17+deb8u7_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Quote:
Originally Posted by c0de3
Okay, here are the directions I followed:
http://www.noip.com/support/knowledg...update-client/
So do I need to uninstall this or just stop the services? I know how to stop the services but I'm not sure how to uninstall it because I installed it via the make and make install? Any suggestions?
|
|
|
|
All times are GMT -5. The time now is 11:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|