-3

How can i fix this error?

enter image description here

I got this error when i tried to install nodejs v18 using these commands

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

THE ERROR:

E: Repository 'http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal InRelease' changed its 'Label' value from 'Lutris stable' to 'lutris'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

I tried removing the previous node version but it didn't work.

  • 1
    I think the issue is in your sources.list. I don't known Ubuntu but in Debian you can find all repository paths in /etc/apt/sources.list. You must comment this repo "http://ppa.launchpad.net/lutris-team/lutris/ubuntu" – apapillon Dec 20 '22 at 14:35
  • 2
    **DO NOT post images of code, data, error messages, etc.** - copy or type the text into the question. [ask] – Rob Dec 20 '22 at 15:06
  • stackoverflow is for programming questions; this may fit better on [unix.se] or https://askubuntu.com – Robert Dec 20 '22 at 15:17

1 Answers1

1

Execute this command:

sudo apt-get update --allow-releaseinfo-change

See the apt man page for more info:

         --allow-releaseinfo-change
           Allow the update command to continue downloading data from
           a repository which changed its information of the release 
           contained in the repository indicating e.g a new major 
           release. APT will fail at the update command for such 
           repositories until the change is confirmed to ensure the
           user is prepared for the change. See also apt-secure(8) 
           for details on the concept and configuration
Kevin C
  • 4,851
  • 8
  • 30
  • 64
  • Even that command gives the same error ```N: Repository 'http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal InRelease' changed its 'Label' value from 'Lutris stable' to 'lutris' ``` – VishalRashmika Dec 20 '22 at 14:55
  • if you fiddle around w `apt update` and then the command I provided? – Kevin C Dec 20 '22 at 14:58