Terminal logs:
sudo apt install snapcraft
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
snapcraft
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
Need to get 0 B/6356 B of archives.
After this operation, 55.3 kB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN:zh",
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 244999 files and directories currently installed.)
Preparing to unpack .../snapcraft_3.0ubuntu2_all.deb ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
=> Installing the Snapcraft snap
==> Checking connectivity with the snap store
==> Installing the Snapcraft snap for ubuntu-22.10
error: requested a non-existing branch on latest/stable for snap "snapcraft":
ubuntu-22.10
dpkg: error processing archive /var/cache/apt/archives/snapcraft_3.0ubuntu2_all.
deb (--unpack):
new snapcraft package pre-installation script subprocess returned error exit st
atus 1
Errors were encountered while processing:
/var/cache/apt/archives/snapcraft_3.0ubuntu2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)