Hot answers tagged

427 votes
Accepted

How to enable diffie-hellman-group1-sha1 key exchange on Debian 8.0?

The OpenSSH website has a page dedicated to legacy issues such as this one. It suggests the following approach, on the client: ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 123.123.123.123 or more ...
Stephen Kitt's user avatar
252 votes
Accepted

Failed to fetch jessie backports repository

Wheezy and Jessie were recently removed from the mirror network, so if you want to continue fetching Jessie backports, you need to use archive.debian.org instead: deb [check-valid-until=no] http://...
Stephen Kitt's user avatar
224 votes

-bash: sudo: command not found

By default sudo is not installed on Debian, but you can install it. First enable su-mode: su - Install sudo by running: apt-get install sudo -y After that you would need to play around with users ...
Maksim Luzik's user avatar
  • 2,413
194 votes

How to install Python 3.6?

You can install Python-3.6 on Debian 8 as follows: wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz tar xvf Python-3.6.9.tgz cd Python-3.6.9 ./configure --enable-optimizations --enable-...
GAD3R's user avatar
  • 66.4k
188 votes
Accepted

gpg: keyserver receive failed: No dirmngr

Installing the package dirmngr fixed the error. user@debian-server:~$ sudo apt-get install dirmngr Retrying : user@debian-server:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-...
Hunter.S.Thompson's user avatar
168 votes
Accepted

apt-get fails: The method driver /usr/lib/apt/methods/https could not be found

Sounds like you may have added some https sources. Since there are no https sources in your sources.list, it would be something in /etc/apt/sources.list.d/. You may also be dealing with a proxy that ...
Matt Vollrath's user avatar
160 votes
Accepted

Error when trying to connect to bluetooth speaker: `org.bluez.Error.Failed`

This may be due to the pulseaudio-module-bluetooth package not being installed. Install it if it missing, then restart pulseaudio. sudo apt install pulseaudio-module-bluetooth pulseaudio -k ...
Alex Jones's user avatar
  • 6,353
157 votes
Accepted

Why is 'ls' suddenly wrapping items with spaces in single quotes?

Preface: While it may be quite satisfying to upvote an answer such as this and call it a day, please be assured that the GNU coreutils maintainers do not care about SO answer votes, & that if you ...
Jan Kyu Peblik's user avatar
138 votes

Why is 'ls' suddenly wrapping items with spaces in single quotes?

You can chose quoting style: ls --quoting-style=literal The same as: ls -N or: QUOTING_STYLE=literal ls Make it an alias, or set export QUOTING_STYLE=literal in your .bashrc to achieve pre-8.25 ...
cuonglm's user avatar
  • 153k
135 votes
Accepted

Possible missing firmware /lib/firmware/i915/* for module i915

For a general solution, apt-file is your way to solve the Possible missing firmware... warning. E.g.: apt-file search bxt_dmc firmware-misc-nonfree: /lib/firmware/i915/bxt_dmc_ver1.bin firmware-misc-...
GAD3R's user avatar
  • 66.4k
125 votes
Accepted

Problem of Can't set locale; make sure $LC_* and $LANG are correct!

Debian ships locales in source form. They need to be compiled explicitly. The reason for this is that compiled locales use a lot more disk space, but most people only use a few of them. Run dpkg-...
Gilles 'SO- stop being evil''s user avatar
119 votes

What directories do I need to back up?

As this question has many different answers, the following list should combine the suggestions into one comprehensive list: Under most circumstances you want to backup these: /home/ for user data and ...
114 votes
Accepted

How to disable X server autostart in Debian Jessie?

The disable didn't work because the Debian /etc/X11/default-display-manager logic is winding up overriding it. In order to make text boot the default under systemd (regardless of which distro, really)...
derobert's user avatar
  • 109k
108 votes
Accepted

Crontab never running while in /etc/cron.d

Files in /etc/cron.d need to also list the user that the job is to be run under. i.e. 0,15,30,45 * * * * root /backup.sh >/dev/null 2>&1 You should also ensure the permissions and owner:...
Stephen Harris's user avatar
105 votes
Accepted

Full-upgrade to Debian testing fails due to libc6-dev : Breaks: libgcc-8-dev

Installing gcc-8-base (sudo apt install gcc-8-base) appeared to do the trick for me and fix the problem for me.
boolean.is.null's user avatar
104 votes
Accepted

How to unload kernel module 'nvidia-drm'?

I imagine you want to stop the display manager which is what I'd suspect would be using the Nvidia drivers. After change to a text console (pressing Ctrl+Alt+F2) and logging in as root, use the ...
filbranden's user avatar
  • 21.7k
99 votes
Accepted

E: Unable to locate package vim on Debian jessie simplified Docker container

I found this solution apt-get update apt-get install apt-file apt-file update apt-get install vim # now finally this will work !!! here is a copy N paste version of above apt-get update &&...
Scott Stensland's user avatar
99 votes
Accepted

bash loop through list of strings

Using arrays in bash can aid readability: this array syntax allows arbitrary whitespace between words. strings=( string1 string2 "string with spaces" stringN ) for i in "${strings[@]}"...
glenn jackman's user avatar
98 votes
Accepted

dmesg: read kernel buffer failed: Permission denied

So it was actually trivial, looking at the very last message from the bug report: Re: Bug#842226: dmesg: read kernel buffer failed: Operation not permitted Part of the changelog from the ...
malat's user avatar
  • 2,982
86 votes
Accepted

gpg: keyserver receive failed: Server indicated a failure

Behind a firewall you should use the port 80 instead of the default port 11371 : sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9A2FD067A2E3EF7B Sample output: Executing: /tmp/...
GAD3R's user avatar
  • 66.4k
85 votes

List of available services

On Debian jessie try: service --status-all. It is in the sysvinit-utils package.
michael.kebe's user avatar
83 votes
Accepted

Unable to add gpg key with apt-key behind a proxy

You usually have a proxy for ftp, http and https; I am seeing there hkp:// as an URL; so it should not be directed via a pure http proxy, hence failing the communication. Use this instead: sudo apt-...
Rui F Ribeiro's user avatar
74 votes
Accepted

Why do previous versions of Debian packages vanish in the package repositories? (highly relevant for version-controlled system configuration)

Being able to reproduce a specific setup, down to the exact version, is your requirement, not Debian’s. Debian only supports a single version of each binary package in any given release; the ...
Stephen Kitt's user avatar
70 votes

What's the difference between /usr/lib/systemd/system and /etc/systemd/system?

Background If you look at the man page man systemd.unit it has a table that explains the differences. This is from a CentOS 7.x system. UNIT LOAD PATH Unit files are loaded from a set ...
slm's user avatar
  • 369k
70 votes
Accepted

Cannot update APT list: "repository no longer has a Release file"

Change testing/updates to testing-security in your sources.list to match http://security-cdn.debian.org/debian-security/dists/testing-security/ Then run apt update instead of apt-get update to ...
slv's user avatar
  • 826
70 votes
Accepted

apt-get update failed to fetch debian amd64 packages while building dockerfile from maven:3.5.2-jdk-8

Stretch has been moved to archive.debian.org, you need to update your repository configuration or better yet, use a newer base image. To update your repository configuration, change deb.debian.org to ...
Stephen Kitt's user avatar
69 votes

How to install VirtualBox Guest Additions in a Debian virtual machine

The TL;DR version for Debian 9 is, as root: echo deb http://ftp.debian.org/debian stretch-backports main contrib > /etc/apt/sources.list.d/stretch-backports.list apt update apt install virtualbox-...
Stephen Kitt's user avatar
68 votes
Accepted

How to install Python 3.6?

Editorial note: Warning: this answer shows how to install Python from future releases of Debian. This will result in a system which mixes Debian releases, and will affect more than Python — in most ...
Егор Гвоздиков's user avatar
68 votes
Accepted

How do Ubuntu and Debian manage $HOME for users with sudo privileges?

Both Debian and Ubuntu ship an /etc/sudoers file that contains Defaults env_reset, which resets environment variables. However, the behavior of env_reset was changed from not touching $HOME to ...
filbranden's user avatar
  • 21.7k

Only top scored, non community-wiki answers of a minimum length are eligible