How to install python3.6 on Ubuntu 22.04

I have faced the same problems and could make it work by adding some additional flags when running ./configure Here are my steps: Step 1 – Prerequsities sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \ libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev \ libgdbm-dev libnss3-dev libedit-dev libc6-dev Step … Read more

apt-get update fails on Ubuntu 22 base docker image

After spending half a day trying to fix the Ubuntu images (which aren’t broken) I have eventually started debugging the host. It’s a docker problem. Ubuntu makes use of syscalls for better key security, which Docker didn’t support yet. The solution is to update docker… or use nerdctl, runc or something similar. Instead of apt … Read more

How I can make apt-get install to my virtualenv?

If you really need to do it this way, you can just copy the files that get installed globally directly into your virtualenv. For example I couldn’t get pycurl working since the required libraries weren’t installing, but apt-get install python-pycurl did. So I did the following: sudo apt-get install python-pycurl cp /usr/lib/python2.7/dist-packages/pycurl* ~/.virtualenvs/myenv/lib/python2.7/site-packages/ The install … Read more

What is the difference between installing a package using pip vs. apt-get?

You probably already know the benefits of apt-get. Automatic update notifications, other apt-installed packages that need those tools know they’re installed, etc. With pip, you know you’re getting the latest version at the time you install it, you can install to a non-default version of Python, and you can install to a virtualenv. If you … Read more

What is the right way to do add-apt-repository via Chef?

If you use chef v12.9 and above, Use the apt_repository resource for managing apt repositories. If you use chef lower than v12.8, you can use APT Cookbook provided by Chef Software, Inc. This cookbook provides same LWRP Following is the example usage of the resource: apt_repository “nginx-php” do uri “http://ppa.launchpad.net/nginx/php5/ubuntu” distribution node[‘lsb’][‘codename’] components [“main”] keyserver … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)