Unfortunately, this command is not apparently functional because it must be run as sudo via either execution of sudo -i
before execution of the command, or insertion of sudo
before snap switch
, and because when it is invoked by sudo
, it only switches the track of the first entry of the output of snap list
(in my case 0ad). The output of execution of the three modifications to your command that I have attempted usage of is:
-
beedellrokejulianlockhart@System-Product-Name:~$ snap list | awk '/^Name/ {next} // {print $1}' | \ xargs snap switch --channel=latest/edge error: access denied (try with sudo)
-
beedellrokejulianlockhart@System-Product-Name:~$ snap list | awk '/^Name/ {next} // {print $1}' | \ xargs sudo snap switch --channel=latest/edge "0ad" switched to the "latest/edge" channel
-
sudo -i root@System-Product-Name:~# snap list | awk '/^Name/ {next} // {print $1}' | \ xargs snap switch --channel=latest/edge "0ad" switched to the "latest/edge" channel