I was trying to do a fresh install on a rpi4 of debian 11 and then do a restore of home assistant on new system. I have the debian 10 docker install running my production home assistant. I am trying to do a fresh install of Debian 11 with this guide. usr/sbin/dpkg-reconfigure: locales is not installed Use dpkg -info (= dpkg-deb -info) to examine archive files. Locale: Cannot set LC_ALL to default locale: No such file or directoryĭpkg-query: package 'locales' is not installed and no information is available Locale: Cannot set LC_MESSAGES to default locale: No such file or directory Locale: Cannot set LC_CTYPE to default locale: No such file or directory Perl: warning: Falling back to the standard locale ("C"). Perl: warning: Please check that your locale settings:Īre supported and installed on your system. bash: warning: setlocale: LC_ALL: cannot change locale (pl_PL.UTF-8) I tried with exports locale-gen and dpkg-reconfigure, but it doesnt work: :~# export LANGUAGE=pl_PL.UTF-8 Kya: :~# cat /etc/ssh/ssh_config|grep -v ^#Īs I showed everything except it (including SendEnv LANG LC_*) was already commented. What with this problem with locale? Should I do: export LANGUAGE=pl_PL.UTF-8Īfter fixing locale what step should I do as a next? Operating System: Debian GNU/Linux 11 (bullseye) Let me know if it worked for you or not in the comment section.:~# ls /etc/ssh/ssh_config.d/ I hope this quick little tip helped you to fix this irritating error. I didn't even need to reboot my Ubuntu server. Immediately after adding the above mentioned line, ‘sudo: unable to resolve host’ error disappeared. Tip: If the old hostname is still present anywhere in your /etc/hosts file, you should replace them with the new hostname. So now, my /etc/hosts file looks like this: 127.0.0.1 localhost You can use Vim to edit files in command line. To fix this, edit this file and add a new line and set the loopback address with the hostname. Since it is missing from here, the system is not able to figure out the hostname and thus it throws the error ‘sudo: unable to resolve host’. The following lines are desirable for IPv6 capable hosts But in my case (and I guess in your case as well) this hostname was missing from the /etc/hosts file as you can see in the output below: 127.0.0.1 localhost The same hostname should be listed in the /etc/hosts file as well. The hostname is taken from /etc/hostname file. Let me show you how to fix this unable to resolve hostname error.įirst, check the hostname of your system with hostname command. The root cause of the error was actually related to the hostname changing. The command ran with sudo without any problem but this error message was displayed anyway. When I started using commands with sudo, I saw a strange error in the output of the commands: I created a sudo user because I prefer not to be root all the time, specially when I am tinkering with my system. Now it’s called test-server because that’s what it is used for. I forgot to give it a reasonable name so a few days later, I had to change the hostname and gave it a better name. My Ubuntu 18.04 server was ready within minutes. To test the tutorials on Linux Handbook, I created a new server on UpCloud, my favorite cloud server provider with blazing fast SSD.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |