Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Docker and language change #350

Closed
c-rocha7 opened this issue Feb 28, 2024 · 18 comments
Closed

Problem with Docker and language change #350

c-rocha7 opened this issue Feb 28, 2024 · 18 comments

Comments

@c-rocha7
Copy link

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.

@TD-Sky
Copy link

TD-Sky commented Mar 5, 2024

Same problem on systemctl start ollama.

@PixelWandererZhou
Copy link

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

@c-rocha7
Copy link
Author

c-rocha7 commented Mar 5, 2024

@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.

@PixelWandererZhou
Copy link

try edit /etc/wsl.conf

[boot]
systemd=true

@c-rocha7
Copy link
Author

c-rocha7 commented Mar 5, 2024

@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
Copy link
Author

c-rocha7 commented Mar 5, 2024

@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

@PixelWandererZhou
Copy link

@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

@c-rocha7
Copy link
Author

c-rocha7 commented Mar 5, 2024

@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

@PixelWandererZhou
Copy link

@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

@c-rocha7
Copy link
Author

c-rocha7 commented Mar 5, 2024

@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

@claudiocp
Copy link

@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

@TD-Sky
Copy link

TD-Sky commented Apr 8, 2024

@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?

@c-rocha7
Copy link
Author

c-rocha7 commented Apr 9, 2024

@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

@PixelWandererZhou
Copy link

@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 *

@c-rocha7
Copy link
Author

@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

@PixelWandererZhou
Copy link

@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?

@c-rocha7
Copy link
Author

@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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants