sub-process /usr/bin/dpkg returned an error code - pyside

When I run the command
sudo apt-get install python-pyside
I met the problem as follows. And I'm using Ubuntu 12.10 right now. Anyone know how to fix it? Thanks
dpkg: error processing python-pyside (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-configobj
python-decorator
python-simplegeneric
ipython
python-pyside.qtcore
python-pyside.qtgui
python-pyside.phonon
python-pyside.qtnetwork
python-pyside.qtdeclarative
python-pyside.qthelp
python-pyside.qtopengl
python-pyside.qtscript
python-pyside.qtsql
python-pyside.qtsvg
python-pyside.qttest
python-pyside.qtxml
python-pyside.qtuitools
python-pyside.qtwebkit
python-pyside
E: Sub-process /usr/bin/dpkg returned an error code (1)

Related

Requirements file didn't install

i have an error when i want to install package_name
they didn't want to install, like when i want to install a pakhage like instabot i say an error when it installing, it say you have an error like this:
error: could not create 'C:\Python311\LICENSE': Permission denied
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> huepy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
so that;s the error, and when i want to fix it i tried to install requirements.txt again but they say you have an error again again again...
that when i put:
pip install -r requirements.txt
the error say:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
can anyone plz give an advice

Error installing Geoviews (cartopy) on Windows

after started using and learning Holoviews-Panel-HvPlot, I'd like to learn Geoviews. Unfortunatly, problems started when I tried to install it. Down below the message. Just some more details:
I'm a Windows 10 user
My Python version is 3.10.4
I've just pip3.10 installed last versions of both Geos and Proj (as in the error message)
I've read that Geoviews requires some out of python extensions that I can't get with 'pip' but I have no idea what we're talking about
Someone suggested to use a virtual environment for Anaconda but I don't use it. Moreover,I'd prefer having it installed in my general environment as I hope to use it often in the future.
Anyway, here the Error Message:
Collecting cartopy>=0.18.0
Using cached Cartopy-0.20.3.tar.gz (10.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
<string>:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or later installed, or installation may fail.
<string>:166: UserWarning: Unable to determine Proj version. Ensure you have 8.0.0 or later installed, or installation may fail.
Proj version 0.0.0 is installed, but cartopy requires at least version 8.0.0.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

udocker & ubuntu:20.04 image

on my debian jessie I installed most recent udocker. In udocker I pulled ubuntu:20.04 image and when starting installing packages into that container, got this error below. Any help, please ?
Setting up libapparmor1:amd64 (2.13.3-7ubuntu5.1) ...
Setting up libcap2:amd64 (1:2.32-1) ...
Setting up libargon2-1:amd64 (0~20171227-0.2) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.167-1ubuntu1) ...
Setting up libjson-c4:amd64 (0.13.1+dfsg-7ubuntu0.3) ...
Setting up libcryptsetup12:amd64 (2:2.2.2-3ubuntu2) ...
Setting up libip4tc2:amd64 (1.8.4-3ubuntu2) ...
Setting up libkmod2:amd64 (27-1ubuntu2) ...
Setting up systemd-timesyncd (245.4-4ubuntu3.1) ...
groupadd: failure while writing changes to /etc/group
adduser: `/sbin/groupadd -g 101 systemd-timesync' returned error code 10. Exiting.
dpkg: error processing package systemd-timesyncd (--configure):
installed systemd-timesyncd package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of systemd:
systemd depends on systemd-timesyncd | time-daemon; however:
Package systemd-timesyncd is not configured yet.
Package time-daemon is not installed.
Package systemd-timesyncd which provides time-daemon is not configured yet.
dpkg: error processing package systemd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
systemd-timesyncd
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root#lxg1213:~#
I guess you want to have the local time in your docker container (because your docker host have the synced time)?
export DEBIAN_FRONTEND noninteractive
apt-get install -y tzdata
ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata
Well, I try to answer: udocker is not supported by IT department. That is why I am getting these errors when updating packages.

Reinstall pip after upgrade to Ubuntu 14.x?

I'm on Ubuntu 14.x. I'm trying to re-install pip. The package appears to be in an inconsistent state. (Possibly a result of some manual file-deletions I did earlier.) Reinstall does not work, and I'm hesitant to force a package-removal through apt-get. How to proceed?
If I try to remove the pip package, I get this error:
$ sudo apt-get remove python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-chardet-whl python-colorama python-colorama-whl python-distlib
python-distlib-whl python-html5lib python-html5lib-whl python-pip-whl
python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl
python-wheel
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
python-pip
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 477 kB disk space will be freed.
Do you want to continue? [Y/n] Y
dpkg: error processing package python-pip (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
python-pip
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I then try to clean up the installed version of pip, I get this error:
$ sudo apt-get install --reinstall python-pip
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/97.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package python-pip.
(Reading database ... 71400 files and directories currently installed.)
Preparing to unpack .../python-pip_1.5.4-1ubuntu4_all.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-pip_1.5.4-1ubuntu4_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python-pip_1.5.4-1ubuntu4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks!

GODI installation error

I'm running Fedora 9 x86_64 and am more or less a Linux newbie (not using it, but installing and such). The error occurs in the second stage of the bootstrap (i.e. "./bootstrap_stage2").
It does a whole lot fo stuff and then these errors start happening:
Fatal error: exception Out_of_memory
make[8]: *** [odoc_html.cmo] Error 2
make[8]: Leaving directory `/home/matthew/godi/build/godi/godi-ocaml/work/ocaml/ocamldoc'
make[7]: *** [ocamldoc] Error 2
make[7]: Leaving directory `/home/matthew/godi/build/godi/godi-ocaml/work/ocaml'
Error: Exec error: File /home/matthew/godi/build/godi/godi-ocaml/./../../mk/bsd.pkg.mk, line 1039: Command returned with non-zero exit code
Error: Exec error: File /home/matthew/godi/build/godi/godi-ocaml/./../../mk/bsd.pkg.mk, line 1378: Command returned with non-zero exit code
Error: Command fails with code 1: godi_console
Failure!
I've run it monitoring my memory and can say that I definately have not run out (using about 500 and I've got 3).
So anyone know what the issue is? I've searched the net, but the only other similar thing I found was the other thread on here (but it had a different error)
Any help would be much appreciated, because last time I installed it, it worked flawlessly.
This looks like a known problem with old OCaml (<3.11) on 64-bit platforms likely triggered by heap randomization, which is enabled on Fedora. It's been fixed so far as I know in recent releases (3.11 at least, possibly 3.10.2). Up-to-date GODI running out of section 3.11 should work if this is the case.

Resources