ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

Problem with Docker and language change

Open c-rocha7 opened this issue 11 months ago • 17 comments

When trying to execute the commands:

sudo systemctl start docker sudo systemctl enable docker sudo usermod -aG docker $USER

I manage to create the symbolic link and also add the $USER, however the first command which would be the initialization of docker gets my terminal stuck and I don't get any more feedback.

Also a problem with changing the Arch Linux language

Captura de tela 2024-02-27 221118

I've already spent a few days looking for and trying various things and to no avail for both problems.

c-rocha7 avatar Feb 28 '24 01:02 c-rocha7

Same problem on systemctl start ollama.

TD-Sky avatar Mar 05 '24 04:03 TD-Sky

try typing wsl --update in CMD/PowerShell with administrator rights

PixelWandererZhou avatar Mar 05 '24 13:03 PixelWandererZhou

@PixelWandererZhou I've already updated WSL, checked for possible windows updates with windows update and winget update, and as a last resort I've formatted my machine around 10 times. I think it might be a configuration problem that I missed or even a problem with WSL itself.

c-rocha7 avatar Mar 05 '24 13:03 c-rocha7

try edit /etc/wsl.conf

[boot]
systemd=true

PixelWandererZhou avatar Mar 05 '24 13:03 PixelWandererZhou

@PixelWandererZhou

the /etc/wsl.conf file is:

`` [boot] systemd=true

[automount] enabled = true options = "metadata" mountFsTab = true ``

and I just did a clean install of ArchWsl with the latest available version and just ran the basics of Docs configuration and just tried to change the language

sudo pacman-key --init

sudo pacman-key --populate

sudo pacman -Syy archlinux-keyring

sudo pacman -Syyuu

``terminal response sudo localectl set-locale LANG=en_BR.UTF-8

Failed to connect to bus: No such file or directory ``

agora por hora ignorar a alteração da linguagem e vou seguir para apenas fazer a instalação do necessario para usar o yay e instalar todo o restante.

script that I save for installations on work machines:

passdw

echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel

useradd -m -G wheel -s /bin/bash {usuário}

passwd {usuário}

config --default-user {usuário}

sudo pacman-key --init

sudo pacman-key --populate

sudo pacman -Syy archlinux-keyring

sudo pacman -Syyuu --noconfirm

sudo localectl set-locale LANG=pt_BR.UTF-8

sudo pacman -S --noconfirm neovim git yarn npm rust base-devel neofetch openssh go zsh docker docker-compose chromium

cargo install exa bat

cd /opt
sudo git clone https://aur.archlinux.org/yay-git.git
sudo chown -R cauaarch:cauaarch ./yay-git
cd yay-git
makepkg -si

yay -S --noconfirm zsh zsh-theme-powerlevel10k-git asdf-vm ddev-bin ttf-meslo-nerd-font-powerlevel10k powerline-fonts awesome-terminal-fonts neovim git yarn npm rust base-devel neofetch openssh go zsh docker docker-compose chromium unzip libyaml re2c gd postgresql-libs oniguruma libzip zip

echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting/

chsh -s /usr/bin/zsh

<.zshrc>
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/asdf-vm/asdf.sh

export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH

alias ls="exa --icons"
alias bat="bat --style=auto"
alias nf="neofetch"
<.zshrc>

asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin-add php https://github.com/asdf-community/asdf-php.git
asdf plugin-add python
asdf plugin add golang https://github.com/asdf-community/asdf-golang.git
asdf plugin-add rust https://github.com/code-lever/asdf-rust.git
asdf plugin-add lua https://github.com/Stratus3D/asdf-lua.git

sudo systemctl start docker
sudo systemctl enable docker

sudo usermod -aG docker $USER

c-rocha7 avatar Mar 05 '24 14:03 c-rocha7

@PixelWandererZhou

Captura de tela 2024-03-05 112948

just like I said, the terminal crashes and /etc/wsl-conf

Captura de tela 2024-03-05 113116

c-rocha7 avatar Mar 05 '24 14:03 c-rocha7

@PixelWandererZhou

Captura de tela 2024-03-05 112948

just like I said, the terminal crashes and /etc/wsl-conf

Captura de tela 2024-03-05 113116

What is your windows and wsl version

PixelWandererZhou avatar Mar 05 '24 14:03 PixelWandererZhou

@PixelWandererZhou Captura de tela 2024-03-05 112948 just like I said, the terminal crashes and /etc/wsl-conf Captura de tela 2024-03-05 113116

What is your windows and wsl version

Captura de tela 2024-03-05 115234

c-rocha7 avatar Mar 05 '24 14:03 c-rocha7

@PixelWandererZhou Captura de tela 2024-03-05 112948 just like I said, the terminal crashes and /etc/wsl-conf Captura de tela 2024-03-05 113116

What is your windows and wsl version

Captura de tela 2024-03-05 115234

you can try to make a rootfs.tar yourself

PixelWandererZhou avatar Mar 05 '24 14:03 PixelWandererZhou

@PixelWandererZhou Captura de tela 2024-03-05 112948 assim como eu disse, o terminal trava e /etc/wsl-conf Captura de tela 2024-03-05 113116

Qual é a sua versão do Windows e do WSL

Captura de tela 2024-03-05 115234

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

c-rocha7 avatar Mar 05 '24 15:03 c-rocha7

@PixelWandererZhou Captura de tela 2024-03-05 112948 just like I said, the terminal crashes and /etc/wsl-conf Captura de tela 2024-03-05 113116

What is your windows and wsl version

I had same problem

claudiocp avatar Mar 06 '24 00:03 claudiocp

@PixelWandererZhou Captura de tela 2024-03-05 112948 assim como eu disse, o terminal trava e /etc/wsl-conf Captura de tela 2024-03-05 113116

Qual é a sua versão do Windows e do WSL

Captura de tela 2024-03-05 115234

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

TD-Sky avatar Apr 08 '24 15:04 TD-Sky

@PixelWandererZhou Captura de tela 2024-03-05 112948 assim como eu disse, o terminal trava e /etc/wsl-conf Captura de tela 2024-03-05 113116

Qual é a sua versão do Windows e do WSL

Captura de tela 2024-03-05 115234

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

c-rocha7 avatar Apr 09 '24 03:04 c-rocha7

@PixelWandererZhou Captura de tela 2024-03-05 112948 assim como eu disse, o terminal trava e /etc/wsl-conf Captura de tela 2024-03-05 113116

Qual é a sua versão do Windows e do WSL

Captura de tela 2024-03-05 115234

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just

cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

PixelWandererZhou avatar Apr 09 '24 04:04 PixelWandererZhou

@PixelWandererZhou Captura de tela 2024-03-05 112948 assim como eu disse, o terminal trava e /etc/wsl-conf Captura de tela 2024-03-05 113116

Qual é a sua versão do Windows e do WSL

Captura de tela 2024-03-05 115234

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just

cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error

c-rocha7 avatar Apr 12 '24 16:04 c-rocha7

@PixelWandererZhou Captura de tela 2024-03-05 112948 assim como eu disse, o terminal trava e /etc/wsl-conf Captura de tela 2024-03-05 113116

Qual é a sua versão do Windows e do WSL

Captura de tela 2024-03-05 115234

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just

cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error

trypacman -S base-devel first?

PixelWandererZhou avatar Apr 12 '24 16:04 PixelWandererZhou

@PixelWandererZhou Captura de tela 2024-03-05 112948 assim como eu disse, o terminal trava e /etc/wsl-conf Captura de tela 2024-03-05 113116

Qual é a sua versão do Windows e do WSL

Captura de tela 2024-03-05 115234

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just

cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error

trypacman -S base-devel first?

yes, and I even installed it from scratch with the latest version of archlinuxwsl less than an hour ago

c-rocha7 avatar Apr 12 '24 16:04 c-rocha7

Somehow the error has been resolved, I downloaded the latest version available today (2024-05-21), did everything the documentation recommends and added just one thing, which was to remove the multilib package comment from /etc/pacman.conf, so I'm closing the issue as resolved.

c-rocha7 avatar May 22 '24 00:05 c-rocha7