Tag Info

New answers tagged

0

The solution is to explicitly allow apt to downgrade packages: sudo su - sudo echo 'Package: * Pin: release o=Ubuntu Pin-Priority: 1001 ' >> /etc/apt/preferences.d/allow-downgrade apt-get update apt-get upgrade apt-get -f install apt-get update mv /etc/apt/preferences.d/allow-downgrade > /etc/apt/preferences.d/allow-downgrade_old sudo apt-get ...


0

Use ls -l to give you a long list. The result should look something like this: drwxr--r-- 10 root root 4096 Jul 25 22:17 usr The fields here show you the access rights to the file, file's number of hard links, the username of the owner, the name of the group that owns the file, size of the file in bytes, date and time of the file's last modification, and ...


0

The cause of my problem was a corrupt file. The data in the field that I was using came from that file. I fixed the file, all the logic works as expected. Thank you for your time and effort. I learned a more about python from your answer.


1

Ubuntu 15.04 comes with both Python 2.7 and Python 3.4. At the command line you can call Python 2.7 by using python, python2 or python2.7, and Python 3.4 by using python3 or python3.4. Software Center uses Python 2.7, so if you can use Software Center you still have Python 2.7 installed .


0

I had the same problem with playing videos. Video player wanted to download mpeg - 4 acc decoder and h.264 decoder, but this hadn`t happened due to legal reasons (-if I understand correctly what was written in the window what appears after pc was trying to download mentioned programs). After I unclicked Software & updates -> Ubuntu software -> "unclick" ...


4

For Django, the quickest way might be to stop generating them in the first place. Now, that might sound like a terrible idea... Bytecode precompilation is what makes Python as fast as it is so it's definitely something you want in production, but we can disable bytecode generation just for things run through manage.py. Open it up and add a ...


3

You can try to put the all command into quotes: #!/bin/bash xterm -hold -e ssh server "python /srv/django/manage.py shell execfile ./myscript.py" it should solve your problem.


1

Two error messages, two answers: Simply run the command below to install the ssl development libraries sudo apt-get install libssl-dev Why? From the error message: scrypt-1.1.6/lib/crypto/crypto_aesctr.c:38:25: fatal error: openssl/aes.h: Datei oder Verzeichnis nicht gefunden #include <openssl/aes.h> Where is openssl/aes.h? % apt-file search ...


2

I think you're asking too many questions at once. I'd recommend using nginx, as it is much, much easier to configure, especially when dealing with multiple Virtual Hosts. RewriteRule ^/(.*) http://127.0.0.1:5050/$1 This is a Regular Expression (regex) rule that matches against url the user has visited. This rule says 'Take all of the characters after ...


1

My python was saved by removing file ./usr/lib/python2.7/lib-dynload/_hashlib.x86_64-linux-gnu.so. I have no idea where did it come from, but removing it made importing hashlib and using pip working again


0

this will get rid of the jack server error, not sure about the others sudo apt-get install multimedia-jack pulseaudio --kill jack_control start



Top 50 recent answers are included