Debian 11 cant install core

hi, i have a debian 11 server and im trying to snap install core, but i have this error

cannot install “hello-world”: Post “https://api.snapcraft.io/v2/snaps/refresh”: proxyconnect tcp: x509: certificate signed by unknown authority

snap --version snap 2.49-1+deb11u1 snapd 2.49-1+deb11u1 series 16 debian 11 kernel 5.10.0-8-amd64

i have solved my problem

  • sudo snap unset system proxy.http

  • sudo snap unset system proxy.https

  • sudo systemctl restart snapd

  • sudo systemctl status snapd

  • sudo systemctl enable --now snapd.socket