apt-get update - error omv-mkaptidx importerror: no modules named 'apt'
-
- OMV 3.x
- Update
- jigg3
-
-
-
Thank you but this did no solve the issue.
Still the same output.
-
I got the same result after an apt-get dist-upgrade:
Traceback (most recent call last):
File "/usr/sbin/omv-mkaptidx", line 35, in <module>
import apt
ModuleNotFoundError: No module named 'apt' -
I got the same error after apt-get update & apt-get dist-upgrade
Traceback (most recent call last):
File "/usr/sbin/omv-confdbadm", line 23, in <module>
import openmediavault
ModuleNotFoundError: No module named 'openmediavault'
dpkg: error al procesar el paquete openmediavault (--configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 1Se encontraron errores al procesar:
openmediavault
Traceback (most recent call last):
File "/usr/sbin/omv-mkaptidx", line 35, in <module>
import apt
ModuleNotFoundError: No module named 'apt'
E: Sub-process /usr/bin/dpkg returned an error code (1)I'dont know how to fix it, could someone help me please??
-
I got the same error after apt-get update & apt-get dist-upgrade
Traceback (most recent call last):
File "/usr/sbin/omv-confdbadm", line 23, in <module>
import openmediavault
ModuleNotFoundError: No module named 'openmediavault'
dpkg: error al procesar el paquete openmediavault (--configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 1Se encontraron errores al procesar:
openmediavault
Traceback (most recent call last):
File "/usr/sbin/omv-mkaptidx", line 35, in <module>
import apt
ModuleNotFoundError: No module named 'apt'
E: Sub-process /usr/bin/dpkg returned an error code (1)I'dont know how to fix it, could someone help me please??
First we need to know your platform, how you installed OMV and so on. I really do not understand that behaviour because all packages are installed via package dependencies. The only reason for this might be that the python3-apt package is broken for your platform.
-
Thank you for your help. I'm newbie so tell me please what do you need.
My kernel version:
Bashroot@micromaiqui:~# cat /proc/version Linux version 4.9.0-0.bpo.4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Debian 4.9.65-3+deb9u1~bpo8+1 (2017-12-23)
I'm running OMV in a HP microserver gen7, OMV 3.0.96 (Erasmus). Fresh Installed from ISO.I did:
but it doesn't fix nothing
-
hi,
i had the same error after apt-get update (on OMV 2.2.14):
CodeTraceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt ImportError: No module named 'apt' Reading package lists... Done
i solved the problem after edit the file "/etc/apt/apt.conf.d/99openmediavault-mkaptidx" and changed the lineAPT::Update::Post-Invoke-Success { "which omv-mkaptidx >/dev/null 2>&1 exit 0; omv-mkaptidx true"; };"
to
APT-GET::Update::Post-Invoke-Success { "which omv-mkaptidx >/dev/null 2>&1 exit 0; omv-mkaptidx true"; };
edit:
it solved only the problem for apt-get update, but not for reinstall, upgrade, etc -
Hi All,
got the same error on one of my Systems too.
File "/usr/sbin/omv-mkaptidx", line 35, in <module>
import apt
ImportError: No module named 'apt'Already tried:
#apt-get install --reinstall python3#apt-get install --reinstall python3-apt
So is there any way to reinstall the missing omv Modules manually ?
-
Hello,
have the same problem and do not get it solved
Code
Alles anzeigenroot@happyfamilyserver:~# 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. 1 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 openmediavault (4.1.8.2-1) ... Updating configuration database ... Traceback (most recent call last): File "/usr/sbin/omv-confdbadm", line 23, in <module> import openmediavault ImportError: No module named 'openmediavault' dpkg: error processing package openmediavault (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: openmediavault Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt ImportError: No module named 'apt' E: Sub-process /usr/bin/dpkg returned an error code (1) root@happyfamilyserver:~#
is there already a solution?
Steffen
-
Hello,
have the same problem and do not get it solved
Code
Alles anzeigenroot@happyfamilyserver:~# 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. 1 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 openmediavault (4.1.8.2-1) ... Updating configuration database ... Traceback (most recent call last): File "/usr/sbin/omv-confdbadm", line 23, in <module> import openmediavault ImportError: No module named 'openmediavault' dpkg: error processing package openmediavault (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: openmediavault Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt ImportError: No module named 'apt' E: Sub-process /usr/bin/dpkg returned an error code (1) root@happyfamilyserver:~#
is there already a solution?
Steffen
-
The system seems to be broken and required Debian packages are not installed. Make sure python3-apt is installed.
-
Did I try but seems to be a mistake, which possibilities would I still have ???
Code
Alles anzeigenroot@happyfamilyserver:~# sudo apt-get install --reinstall python3-apt Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/158 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 93358 files and directories currently installed.) Preparing to unpack .../python3-apt_1.4.0~beta3_armhf.deb ... Unpacking python3-apt (1.4.0~beta3) over (1.4.0~beta3) ... Setting up python3-apt (1.4.0~beta3) ... Setting up openmediavault (4.1.8.2-1) ... Updating configuration database ... Traceback (most recent call last): File "/usr/sbin/omv-confdbadm", line 23, in <module> import openmediavault ImportError: No module named 'openmediavault' dpkg: error processing package openmediavault (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: openmediavault Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt ImportError: No module named 'apt' E: Sub-process /usr/bin/dpkg returned an error code (1) root@happyfamilyserver:~#
-
Hello,
Is there any repair cmd to solve the problem?
I just do not know how to go on...
-
Do you have /usr/sbin/omv-confdbadm?
ls -la /usr/sbin/omv-confdbadm
-rwxr-xr-x 1 root root 2061 Jan 6 10:32 /usr/sbin/omv-confdbadm -
Have you checked that your repofiles were properly updated? Have 2 OMV machines, and it worked on one, but not the other, it stayed on Jessie, so I changed to stretch.
/etc/apt/sources.list
-
python3-apt
did dpkg-reconfigure --force python3-apt and no error occured.
dpkg-reconfigure --force openmediavault
Updating configuration database ...
Traceback (most recent call last):
File "/usr/sbin/omv-confdbadm", line 23, in <module>
import openmediavault
ImportError: No module named 'openmediavault'So how do I reinvoke the python modules again ?
thx for your suggestion
-
Chances are what has happened is that you guys have either remapped Python executable (like using pyenv) or there's some other kind of Python issue.
Specifically for me I installed another version of Python using pyenv and set it as the global version which is what caused these issues.
Check what `python` and `python3` are pointing at:
`which python`
For me I had to set this back to the system version to get this error message to go away
-
I also had this error and fixed by ensuring that the usr/bin and usr/local/bin did not both have references to the system installed python and that the order of the two directories was correct in the PATH statement. i.e. if python is in usr/bin then have usr/bin first in the PATH.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!