bash: locale-gen: command not found

debian linux

When I run locale-gen command, i get the following error

To see which package provide the locale-gen command, run

The command locale-gen is provided by package locales. To fix the error install package “locales” with the command

See locale-gen […]

Read More…

Reinstall Kernel in Ubuntu/Debian

reinstall ubuntu kernel

To reinstall Kernel in Ubunru, you need to find the version of kernal installed, for this run

Or you can use command, find the kernel version you need to install

Once you have the name of linux-image package you need to install, you can run

Example See apt, Ubuntu, Debian […]

Read More…

Enable FTP for EasyEngine Website

To Enable FTP for EasyEngine web sites, we need to install pure-ftpd. On Ubuntu/Debian, run

Enable virtial FTP users

In EasyEngine, we sites files are owned by www-data user, this user have a UID of 33. By default pure-ftpd won’t allow this. To enable users with UD 33 to login, run

Now […]

Read More…

Uninstalling Software in Debian Server

To uninstall a software on Debian server, run

Example To all installed software with specific name, run

Example

In above list, packages start with ii = installed un = currently not installed on the server When you uninstall a package, it won’t remove all config files, such packages list as uninsalled (un). […]

Read More…

apt-cache

To search for available packages, run

Example

Ubuntu find Dependencies for a package apt […]

Read More…

apt The method driver /usr/lib/apt/methods/https could not be found

When running apt update on a Debian server, i get error

To fix the error, run

See apt […]

Read More…

Download a package using apt on Debian/Ubuntu

download package using apt

On Debian and Ubuntu servers, you can download a package using apt download command.

Package will get downloaded to current working directory. Better do this to /tmp to avoid permission errors. Method 2 If you want to download package and dependencies, then use

This will download the package and all dependency, store it […]

Read More…