Error: The remote "" doesn't exist

Hi.
vesion 3.0.3
On any command one answer. For example:

lxc list
Error: The remote “” doesn’t exist

lxc launch ubuntu-minimal:bionic
Error: The remote “” doesn’t exist

But before i run command:

lxc remote add --protocol simplestreams ubuntu-minimal Ubuntu Minimal Cloud Images (RELEASED)

only this command have good answer:

lxc remote list

> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> |      NAME      |                        URL                        |   PROTOCOL    | AUTH TYPE | PUBLIC | STATIC |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | local          | unix://                                           | lxd           | tls       | NO     | YES    |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | ubuntu         | https://cloud-images.ubuntu.com/releases          | simplestreams |           | YES    | YES    |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | ubuntu-daily   | https://cloud-images.ubuntu.com/daily             | simplestreams |           | YES    | YES    |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+
> | ubuntu-minimal | https://cloud-images.ubuntu.com/minimal/releases/ | simplestreams |           | YES    | NO     |
> +----------------+---------------------------------------------------+---------------+-----------+--------+--------+

What can i do?

lxc remote set-default local

Looks like your default remote has been cleared somehow, this should fix it.

2 Likes