Files list file for package 'git' contains empty filename error - raspberry-pi

I have a Raspberry Pi 4 running Raspian Lite Version 10. So I far I have installed git, Apache, php, and phpmyadmin on it.
Now while trying to install python3-venv package (or any package for that matter) using sudo apt-get install python3-venv I am getting following error -
Selecting previously unselected package python-pip-whl. dpkg: unrecoverable fatal error, aborting: files list file for package 'git' contains empty filename E: Sub-process /usr/bin/dpkg returned an error code (2)
I am not able to install any package on my system due to this error. So far I tried deleting the git folder from /usr/bin/dpkg but it has not seemed to help.

Related

install mongodb: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found

When i was trying to install the latest mongodb-3.4.1 with tar fils, i encountered the following error:
libssl.so.10: cannot open shared object file: No such file or directory
then I searched from the net and tried this solution: https://askubuntu.com/questions/339364/libssl-so-10-cannot-open-shared-object-file-no-such-file-or-directory, created the soft link for the file libssl.so.1.0.0 and libcrypto.so.1.0.0, but another error occurred like this:
$ bin/mongod --config=mongo.cfg
bin/mongod: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by bin/mongod)
bin/mongod: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by bin/mongod)
The error was still there even though i reinstalled the libssl1.0.0 by apt-get install

How to fix "Cannot retrieve repository metadata (repomd.xml)" error installing Ripple - yum

I installed the Ripple rpm repo following documentation
(step 1)
$ sudo rpm -Uvh
https://mirrors.ripple.com/ripple-repo-el7.rpm
Then (step2) I run command:
sudo yum install --enablerepo=ripple-stable rippled
but I get the error:
https://mirrors.ripple.com/rpm/%24releasever/stable/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ripple-stable. Please verify its path and try again
Does anyone know how to resolve it?
That error message occurs when attempting to install the rippled package on an unsupported environment.
The rippled rpm package is currently only available for CentOS/RHEL 7 (and Ubuntu 15+ using alien)
You could try installing with:
sudo yum install --enablerepo=ripple-stable --releasever=el7 rippled
but YMMV.
\The URL is suspect - it says %24releasever which is URL-encoded $releasever which means your yum isn't filling in that blank, e.g. .../rpm/7/stable/.
Try hard-coding it in the file you can find in /etc/yum.repos.d/ that your step one installed.

running qde(eclipse for blackberry developpement)

i've installed the Momentics IDE 2.0 for blackberry but something's wrong. i'm using debian x64, and when i try to run it, i get an error that says:
MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
/home/User/bbndk/configuration/org.eclipse.osgi/bundles/361/1/.cp/libswt-pi-gtk-4236.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
no swt-pi-gtk in java.library.path
/home/User/.swt/lib/linux/x86/libswt-pi-gtk-4236.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Can't load library: /home/User/.swt/lib/linux/x86/libswt-pi-gtk.so
so on the blackberry page it says to install (ia32-libs) kind of librairies. i'm not able to install them because i get a message saying that:
some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-i386 but it is not installable
E: Unable to correct problems, you have held broken packages.
how can i fix this?
I'm not sure how you got there coz in my case I was blocked from running java due to the ia32-libs.
In short, this is how I installed momentics-2.0 on my ubuntu 13.10 x86_64.
Add this line to the bottom of your /etc/apt/sources.list (Not sure if still need this yet):
deb http://ca.archive.ubuntu.com/ubuntu raring main universe
Installed these libs as a replacement of ia32-libs:
ywu#ywu-HP-8100:/install$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
Fix the missing libgtk-x11-2.0.so.0:
ywu#ywu-HP-8100:/install$ sudo apt-get install libgtk2.0-0:i386
Fix the missing libXtst.so.6:
ywu#ywu-HP-8100:/install$ sudo apt-get install libxtst6:i386
Install momentics-2.0:
ywu#ywu-HP-8100:/install$ sudo ./momentics-2.0-201310251201-linux.gtk.x86.bin
Good luck!

pip -r not working as expected in virtualenv

I have a really strange issue with the behavior of pip in a virtualenv.
I have set
export PIP_REQUIRE_VIRTUALENV=true
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
export VIRTUALENV_DISTRIBUTE=true
Now, when I'm in my virtualenv and want to install my dependencies:
pip install -r requirements/_base.txt
(for testing purposes, requirements/_base.txt only contains:)
Django==1.5
Anyway, when I try to install it, I only get:
Downloading/unpacking Django==1.5 (from -r requirements/_base.txt (line 1))
Running setup.py egg_info for package Django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
And after that, Django is not installed.
Here comes the strange part: When I install Django manually with
pip install Django==1.5
it's working perfectly (though the same two warnings appear):
Downloading/unpacking Django==1.5
Running setup.py egg_info for package Django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Installing collected packages: Django
Running setup.py install for Django
changing mode of build/scripts-2.7/django-admin.py from 644 to 755
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
changing mode of /usr/local/share/python/django-admin.py to 755
Successfully installed Django
Cleaning up...
I faced a similar problem and realized that removing the version requirement solved the problem. Don't know why though...
I figured out why this was happening to me, which may also solve the problem for others who see this page. For me, the problem was that I had a requirement that can not install automatically via pip. The pip freeze exported the package name and version but, for whatever reason, pip cannot install that package directly in a requirements install. I have to instead install it manually from a zip file.
The problem you might be experiencing, then, is that you have a requirement which cannot be installed by pip's requirements installer. Check your output log for red text, errors, that sort of thing.
I figured this out using this post:
pip fails to install packages from requirements.txt

Unable to install pyaudio on osx lion

I'd like to install pyaudio on osx lion but i'm unable to do it. Everytime i try with the pkg, it doesn't install anything. When i try to install it with pip i have the following error (among a lot of other lines) :
lipo: can't open input file: /var/folders/11/gfpzwjdd6dj7hbz7dpbvx9y40000gn/T//ccYnQM1k.out (No such file or directory)
error: command '/usr/bin/llvm-gcc' failed with exit status 1
If anyone can help me, thank you.
I had to manually install it to get anything working. You'll need the source distributions for both pyaudio and portaudio.
Firstly I installed portaudio with MacPorts (not from the source distribution):
sudo port install portaudio
pyaudio then refused to install as it couldn't find the pa_mac_core.h and portaudio.h headers. After copying these from the portaudio source distribution include folder into pyaudio's src folder, I had to uncomment line 49 of pa_mac_core.h:
#include <AudioToolbox/AudioToolbox.h>
Doing this allowed me to get pyaudio to install using a simple
sudo python setup.py install
(I probably didn't need superuser for the portaudio install, but pyaudio wouldn't install unless I did it as a superuser)