ubuntu-18.04

How to remove Python 3.6 completely from Ubuntu 18.04

时光毁灭记忆、已成空白 提交于 2019-12-22 03:49:06
问题 Both Python 2.7 and 3.6 are installed by default in Ubuntu 18. But I wish to use the Anaconda Python with conda package manager. To avoid any conflicts I wish to completely remove the default Python 3.6. Are there any way to do that? Please help. 回答1: Ubuntu 18.04 requires python 3.6 to function. If you remove python 3.6, you won't be able to log in after a restart. Ubuntu will still have python 3.6minimal, even after uninstalling python 3.6. so you will have to remove both. Once that is done

0:1(10): error: GLSL 3.30 is not supported. ubuntu 18.04 c++

杀马特。学长 韩版系。学妹 提交于 2019-12-22 01:29:52
问题 I am trying to draw a triangle on the window with openGL GLFW library. Here is my complete code #include <GL/glew.h> #include <GLFW/glfw3.h> #include <iostream> using namespace std; static unsigned int compileShader ( unsigned int type, const string& source ){ unsigned int id = glCreateShader ( type ); const char* src = source.c_str(); glShaderSource ( id, 1, &src, nullptr ); glCompileShader ( id ); int result = 0; glGetShaderiv ( id, GL_COMPILE_STATUS, &result ); if ( result == GL_FALSE ){

How to fix “dial unix /var/run/docker.sock: connect: permission denied” when group permissions seem correct?

南楼画角 提交于 2019-12-20 09:11:45
问题 I'm suddenly having issues after an update of Ubuntu 18.04: previously I've used docker without issue on the system, but suddenly I cannot. As far as I can tell, the permissions look correct: $ docker run hello-world docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. $ ls -last /var

How to compile Curl with legacy SSL support on Ubuntu?

痴心易碎 提交于 2019-12-20 04:23:12
问题 I have the following error, when attempting to connect to an old HTTPS-enabled web site using Curl: curl https://10.11.1.44 curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol More verbosely: * Expire in 0 ms for 6 (transfer 0x55a4192abdd0) * Trying 10.11.1.44... * TCP_NODELAY set * Expire in 200 ms for 4 (transfer 0x55a4192abdd0) * Connected to 10.11.1.44 (10.11.1.44) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate

how do i troubleshoot a program that isn't running in ubuntu

孤者浪人 提交于 2019-12-20 03:34:10
问题 Publii is a desktop-based CMS for Windows, Mac and Linux. I downloaded the appimage and deb packages and installed it, but neither seems to be launching, I have no way to troubleshoot why it isn't launching and I have used this software before on a previous installation of Ubuntu How would I troubleshoot this program in Linux effectively? I'd prefer a terminal approach but a GUI is also good. EDIT following the instructions ran here npm run dev > Publii@0.31.3 dev /home/areahints/Publii >

Configure AWS Redshift on Ubuntu 18.04 and use it with pyodbc

佐手、 提交于 2019-12-13 21:23:09
问题 When I try to connect to my DSN using pyodbc I am getting following error: python3: Relink /lib/x86_64-linux-gnu/libudev.so.1' with /lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime' Segmentation fault (core dumped) I have tried different solution like reinstalling libudev1 etc. but nothing is working. I tried to connect to using 16.04 VM and I am getting could not connect to server: Connection timed out Is the server running on host xxxxxx and accepting TCP/IP connections on

Odoo 12 in WSL - Psycopg2 doesn't get the right Port for PostgreSQL

眉间皱痕 提交于 2019-12-13 17:42:07
问题 I have installed Odoo 12 in Ubuntu 18.04 LTS using WSL for windows 10 Pro. Everything seems fine and service is running, but when I access the localhost I get Internal Server Error, and I get this error: 2019-09-05 06:52:07,596 309 ERROR ? werkzeug: Error on request: Traceback (most recent call last): File "/opt/odoo/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 303, in run_wsgi execute(self.server.app) File "/opt/odoo/.local/lib/python3.6/site-packages/werkzeug/serving.py",

No command runs in Subprocess [closed]

▼魔方 西西 提交于 2019-12-13 09:04:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 days ago . I have used a subprocess to convert Docx file to Pdf file in Django. On the server when I run the project with python manage.py runserver command. All things working file but if I run the application with Gunicorn my subprocess not work. Simple "ls" command is also not working. My server has ubuntu 18.04. I knew

compiler gives error ld terminated with signal 11

会有一股神秘感。 提交于 2019-12-13 02:34:50
问题 I am trying to compile a simple hello program using gcc, but getting the below error. i am using ubuntu. gcc -g -o hello hello.c collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped compilation terminated. strace ld -v execve("/usr/bin/ld", ["ld", "-v"], 0x7ffc43b744c8 /* 57 vars */) = 0 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x2} --- +++ killed by SIGSEGV (core dumped) +++ Segmentation fault (core dumped) I tried reinstalling gcc and

collect2: fatal error: ld terminated with signal 11 [Segmentation fault]

限于喜欢 提交于 2019-12-12 19:44:08
问题 I actually can not compile a simple "helloworld" in C. When I type "gcc hello.c" the output is: collect2: fatal error: ld terminated with signal 11 [Segmentation fault] Have someone an idea? I tried to reinstall gcc,g++,make,cmake,binutils. None of this things worked. When I type just "ld" in the terminal the output is: "Segmentation Fault" 回答1: I could solve it with sudo apt purge binutils sudo apt remove make sudo apt autoremove sudo apt install build-essential I don't know why it works