Hi, how do I reinstall update-alternatives? It went missing and is needed for updates/installing plugins apparently
How to Reinstall update-alternatives?
-
- OMV 3.x
- darkarn
-
-
how do I reinstall update-alternatives?
update-alternatives is part of the dpkg package. So, that is very bad it is missing. What is the output of: apt-get -f install
-
update-alternatives is part of the dpkg package. So, that is very bad it is missing. What is the output of: apt-get -f install
Code
Alles anzeigenReading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up procps (2:3.3.9-9+deb8u1) ... /var/lib/dpkg/info/procps.postinst: 76: /var/lib/dpkg/info/procps.postinst: update-alternatives: not found dpkg: error processing package procps (--configure): subprocess installed post-installation script returned error exit status 127 Setting up perl (5.20.2-3+deb8u11) ... /var/lib/dpkg/info/perl.postinst: 16: /var/lib/dpkg/info/perl.postinst: update-alternatives: not found dpkg: error processing package perl (--configure): subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: procps perl E: Sub-process /usr/bin/dpkg returned an error code (1)
Looks bad, procps and perl are having errors. I am not even sure why this is happening but I got a bad feeling about this one
-
Assuming you are using an amd64 OMV 3.x system, try (as root):
wget http://ftp.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.17.27_amd64.deb
dpkg -i dpkg_1.17.27_amd64.deb -
Assuming you are using an amd64 OMV 3.x system, try (as root):
wget http://ftp.us.debian.org/debian/pool/main/d/dpkg/dpkg_1.17.27_amd64.deb
dpkg -i dpkg_1.17.27_amd64.deb
Thanks! That allowed me to install and update plugins again (but I saw some "Bad Gateway" messages but was able to close the dialog)When I was uninstalling one of the plugins, I saw this though:
Code
Alles anzeigenError #0: exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --auto-remove --purge remove openmediavault-teamviewerhost 2>&1' with exit code '100': Reading package lists... Building dependency tree... Reading state information... The following packages will be REMOVED: libgstreamer-plugins-base0.10-0* libgstreamer0.10-0* liborc-0.4-0* libqt5network5* libqt5printsupport5* libqt5qml5* libqt5quick5* libqt5sql5* libqt5webkit5* libqt5x11extras5* openmediavault-teamviewerhost* qml-module-qtquick-controls* qml-module-qtquick-dialogs* qml-module-qtquick-layouts* qml-module-qtquick-privatewidgets* qml-module-qtquick-window2* qml-module-qtquick2* teamviewer-host* 0 upgraded, 0 newly installed, 18 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 121 MB disk space will be freed. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 125670 files and directories currently installed.) Removing openmediavault-teamviewerhost (3.0.1) ... /var/lib/dpkg/info/openmediavault-teamviewerhost.postrm: 699: /var/lib/dpkg/info/openmediavault-teamviewerhost.postrm: tee: not found dpkg: error processing package openmediavault-teamviewerhost (--purge): subprocess installed post-removal script returned error exit status 127 Removing teamviewer-host (12.1.83885) ... Removed symlink /etc/systemd/system/multi-user.target.wants/teamviewerd.service. Clearing assignments ... done Purging configuration files for teamviewer-host (12.1.83885) ... Removing libqt5webkit5:amd64 (5.3.2+dfsg-4) ... Purging configuration files for libqt5webkit5:amd64 (5.3.2+dfsg-4) ... Removing libgstreamer-plugins-base0.10-0:amd64 (0.10.36-2) ... Purging configuration files for libgstreamer-plugins-base0.10-0:amd64 (0.10.36-2) ... Removing libgstreamer0.10-0:amd64 (0.10.36-1.5) ... Purging configuration files for libgstreamer0.10-0:amd64 (0.10.36-1.5) ... Removing liborc-0.4-0:amd64 (1:0.4.22-1) ... Purging configuration files for liborc-0.4-0:amd64 (1:0.4.22-1) ... Removing qml-module-qtquick-dialogs:amd64 (5.3.2-2) ... Removing qml-module-qtquick-privatewidgets:amd64 (5.3.2-2) ... Removing qml-module-qtquick-controls:amd64 (5.3.2-2) ... Removing qml-module-qtquick-layouts:amd64 (5.3.2-2) ... Removing qml-module-qtquick2:amd64 (5.3.2-4) ... Removing qml-module-qtquick-window2:amd64 (5.3.2-4) ... Removing libqt5printsupport5:amd64 (5.3.2+dfsg-4+deb8u2) ... Purging configuration files for libqt5printsupport5:amd64 (5.3.2+dfsg-4+deb8u2) ... Removing libqt5sql5:amd64 (5.3.2+dfsg-4+deb8u2) ... Purging configuration files for libqt5sql5:amd64 (5.3.2+dfsg-4+deb8u2) ... Removing libqt5x11extras5:amd64 (5.3.2-2) ... Purging configuration files for libqt5x11extras5:amd64 (5.3.2-2) ... Removing libqt5quick5:amd64 (5.3.2-4) ... Purging configuration files for libqt5quick5:amd64 (5.3.2-4) ... Removing libqt5qml5:amd64 (5.3.2-4) ... Purging configuration files for libqt5qml5:amd64 (5.3.2-4) ... Removing libqt5network5:amd64 (5.3.2+dfsg-4+deb8u2) ... Purging configuration files for libqt5network5:amd64 (5.3.2+dfsg-4+deb8u2) ... Processing triggers for openmediavault (3.0.99) ... Restarting engine daemon ... Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for mime-support (3.58) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Errors were encountered while processing: openmediavault-teamviewerhost E: Sub-process /usr/bin/dpkg returned an error code (1)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:151 Stack trace: #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMVRpcServicePluginMgmt->{closure}('/tmp/bgstatusGl...', '/tmp/bgoutputr9...') #1 /usr/share/openmediavault/engined/rpc/pluginmgmt.inc(155): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure)) #2 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array) #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('remove', Array, Array) #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Plugin', 'remove', Array, Array, 1) #6 {main}
-
I saw some "Bad Gateway" messages but was able to close the dialog
Those are probably from nginx restarting. Shouldn't be a problem.
tee: not found
That isn't good. tee is provided by coreutils. What is the output of: dpkg -l | grep -v ^ii
-
Those are probably from nginx restarting. Shouldn't be a problem.
That isn't good. tee is provided by coreutils. What is the output of: dpkg -l | grep -v ^ii
CodeDesired=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 +++-==================================-=================================-============-======================================================================== ============= rc linux-image-4.9.0-0.bpo.3-amd64 4.9.30-2+deb9u5~bpo8+1 amd64 Linux 4.9 for 64-bit PCs iF openmediavault-omvextrasorg 3.4.31 all OMV-Extras.org Package Repositories for OpenMediaVault pH openmediavault-teamviewerhost 3.0.1 all Teamviewer Host plugin for OpenMediaVault.
This is what I got
Sorry for not mentioning this earlier, I just recalled what happened last night. I was updating some plugins when some of them started giving similar errors, so I decided to reboot and see if that clears any error.
During boot, it stopped until I did a fsck -a (or something like that) and then it continued, leading to this thread.
-
I guess you need to fix tee the same way was update-alternatives.
wget http://ftp.us.debian.org/debian/pool/main/c/coreutils/coreutils_8.23-4_amd64.deb
dpkg -i coreutils_8.23-4_amd64.debThen hopefully apt-get -f install can fix things.
-
I guess you need to fix tee the same way was update-alternatives.
wget http://ftp.us.debian.org/debian/pool/main/c/coreutils/coreutils_8.23-4_amd64.deb
dpkg -i coreutils_8.23-4_amd64.debThen hopefully apt-get -f install can fix things.
Thanks! That did the trick!After those commands, I decided to run this again
It showed me the same teamviewer plugin. I went into the Plugins and saw that its Installed light is off but I can press the Uninstall button for it. It uninstalled successfully and along the way I too successfully installed another plugin.
Only think left was an old header, which wont matter much but why would it be there in the first place? Did the update procedure then forget to remove it properly?
I am also curious about the fsck in the first place that led to this. Should I schedule a disk check?
-
which wont matter much but why would it be there in the first place?
It is removed but not purged. So, it isn't hurting anything.
Did the update procedure then forget to remove it properly?
Hard to say but it happens from time to time.
I am also curious about the fsck in the first place that led to this. Should I schedule a disk check?
When you rebooted, a filesystem might not have unmounted properly leading to the need to fsck. Shouldn't hurt to schedule a check.
-
It is removed but not purged. So, it isn't hurting anything.
Hard to say but it happens from time to time.
When you rebooted, a filesystem might not have unmounted properly leading to the need to fsck. Shouldn't hurt to schedule a check.
Thanks, so should I do a fsck and then an extended SMART test just to be sure?
-
I would do the fsck. Did the short smart test show anything?
-
I would do the fsck. Did the short smart test show anything?
SMART short test passed. I am running the long test now as I need to sleepAs for fsck can I use PartedMagic to do it since the OS drive is mounted?
-
I went ahead with the long term and fsck -f
Everything passed so far, which means there are no problem?
Still puzzled on why this occurred in the first place
-
Everything passed so far, which means there are no problem?
That is a good sign.
Still puzzled on why this occurred in the first place
As mentioned before, if the filesystem didn't unmount properly (process not stopping) when you rebooted, it is possible.
-
That is a good sign.
As mentioned before, if the filesystem didn't unmount properly (process not stopping) when you rebooted, it is possible.
Thanks, I hope this does not happen again (and if it does I at least know how to fix it.... I think?)
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!