Repair damaged Python3.2 installation (Ubuntu)

I stupidly removed the subprocess.py module from /usr/lib/python3.2 so I tried to fix this by executing the following command: sudo apt-get install python3 But I got this error: Traceback...

dpkg error: pycompile: not found

sudo apt-get remove --purge mysql-server mysql-client mysql-common I am getting the following error as I try to remove mysql using the above command: Reading package lists... Done Building...

why can't I get the string while scraping with python?

here is my code i want to scrape a list of words from a website, but when i call the .string on the import requests from bs4 import BeautifulSoup url =...

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct

I am trying to install rails on ubuntu 17.04 but it was giving an error. Then I tried to run other installations but the error was same. **E: dpkg was interrupted, you must manually run 'sudo...

Error while installing mongodb on ubuntu 16.04

I've already seen these answers, so please don't link em in...

showing ImportError: cannot import name 'Template' while Using from PIL import Image

I'm currently working on Image recognition program Using: python 3.5 PyCharm Community Edition 2016.3 as IDE and i installed the Pillow 3.1.2 using pip install Pillow my code is: from PIL import...

Error setting up MySQL: Table 'mysql.plugin' doesn't exist

I have a MySQL 5.7 instance running without problems on Ubuntu 16, but when i try to install any other package or try to update existing ones through apt-get, i get the following error: # apt-get...

pip3 install not working - No module named 'pip._vendor.pkg_resources'

When trying to install a package for Python 3 (in Ubuntu), using pip3 install packageName (or sudo pip3 install packageName), I get the following error message: Traceback (most recent call last): ...

cannot install redis-server on ubuntu 18.04

I have upgraded to ubuntu 18.04 from 17.10. The redis-server package cannot be fully installed. I looked at /var/log/syslog and it says ==> /var/log/syslog <== Jun 3 13:04:10 qaz-mko systemd[1]:...

Can not install mysql ubuntu after removing maria db

I was working on mysql database, and unfortunately I installed mariadb and when I want to go back to mysql I have error , I removed mariadb and trying to install mysql with this command sudo...

Sub-process /usr/bin/dpkg returned an error code (1) due to update-notifier-common

While running apt upgrade command, i am getting. update-initramfs: Generating /boot/initrd.img-4.4.0-135-generic Errors were encountered while processing: update-notifier-common ...

Python3.6: File "/usr/lib/python3.6/configparser.py", line 1138, in _unify_values

My script is working fine on Pycharm with python 3.6, but has some issues when i run from ubuntu 16 using Python3.6 Error: python3.6 AttributeInsertion.py Loading library modules... ...

Can't Installing mysql in Linux mint 19

I am a beginner Linux user. Yesterday, I tried to install MySQL on my Linux mint laptop. I have installed Apache successfully, but I have got the following errors while trying to install...

How to fix "ModuleNotFoundError: No module named 'setuptools' "

I created a new project in PyCharm and in settings of the interpreter I saw message: 'python packaging tools not found'. When I clicked on "install packaging tools" got this error Traceback (most...

Issue installing python3-dev on fresh install of Ubuntu 18.04 in Vagrant box

My Vagrantfile is as follows: # -*- mode: ruby -*- # vi: set ft=ruby : # Set Vagrant Minimum Version Vagrant.configure("2") do |config| config.vm.box = "bento/ubuntu-18.04" ...

mysql-server-5.7 is not configured yet

I installed Mysql5.7 long time ago, afterwards I uninstalled it and installed MariaDB disabling apparmor (mysql) profile. Now I uninstalled MariaDB and I'm trying to install mysql5.7 and I got...

linux headers are consuming a lot of disk space on the EC2 machine. Is it safe to manually delete the headers with rm command?

EC2 machine on aws is filled with multiple linux headers and currently / is 100% full on disk space. I ran commands like apt-get autoremove but it is throwing an error saying No apport report...

Can't install mysql on pure ubuntu 20.04

I just installed WSL Ubuntu 20.04 and the first thing I've done is sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server and here what it gave me Setting up...

Corrupted python package in ubuntu18.04LTS(WSL)

I am a newbie of ubuntu, thanks for reading this thread. I was trying to remove and reinstall pip and python2.7, python3.6, python3.8 etc... However I corrupt it somehow,and don't know how to fix...

Python package 'six' brakes apt commands

I am running ubuntu 20.04.01 and have recently started working with python. One of the projects I am working on required me to install six, which is a Python 2 and 3 compatibility library. pip...

amdgpu-pro installation failed and now dependencies problem

first of all please bear with me as my English is still improving. So, yesterday i was trying to install DaVinci Resolve 16 on my newly installed Pop Os using an AMD RX 570 but i came across a...

Why virtualbox fails to install on Ubuntu20.04

I am trying to install virtualbox. I had it installed previously and it worked. Today I tried to add another virtual machine and it started complaining about problems with dkms so I tried to purge...

MongoDB Installation WSL 2

Building dependency tree Reading state information... Done The following additional packages will be installed: mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools The...

Failed to install ROCm on Ubuntu 20.04

I would like to set up AMD Radeon for Deep Learning on Ubuntu. The main libraries for my work are keras and pytorch. I followed strictly on ROCm installation guideline here but failed at the 3rd...

mysqld got signal 6 when running simple query

I've started having mysql crashing and restarting. The system has been completely stable, and this has started happening after creating the following table. I successfully inserted about 210,000...

How to perform form based authentication in ZAP docker instead headless scanning

I am running zap docker full scan on my target host. However while debugging I came across that I missed to provide login information to my web application which is also target host. Steps are as...

installing MongoDB on ubuntu wsl2 systemd issue systemd as init system (PID 1)

installing MongoDB on ubuntu wsl2 I tried to install MongoDB on WSL( ubuntu 20), after using this link but there is something wrong! I don't know what the heck is: systemd :"System has not been...

Mongod is not a service | Ubuntu | WSL. Error: mongod: unrecognized service

I'm using WSL2 with Ubuntu 20.04.2 LTS. I tried setting up mongodb. There are two issues: Running the command sudo apt-get install -y mongodb-org results in the error below. Errors were...

Apache restart every midnight by itself causing apscheduler task to not complete

Hi I have a Pyramid wsgi webapp served using Apache. The webapp has an hourly job that must be run at the 0th min to fetch time-sensitive data and write to my mysql database. I note that sometimes...

Max retries exceeded with url Caused by NewConnectionError Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

I am requesting an API using the python requests library: My python script is run once a day by the scheduler, Once the python script gets run, I am getting this error and the PID of the python...