I have a new computer and installed Linux Mint. When I tried to install npm and then install the angular cli it won't let me, I get this error:
simon@simon:~$ sudo apt-get update
[sudo] password for simon:
E: Malformed line 2 in source list /etc/apt/sources.list.d/i2p-maintainers-i2p-bionic.list (type)
E: The list of sources could not be read.
While searching on stackoverflow in english, some answers commented to edit the file sources.list
or create a new one, but it doesn't work, it doesn't give me permission neither to edit or change it.
TO UPDATE
Given the comments of several about the source.list file, I get this:
GNU nano 2.9.3 sources.list
deb cdrom:[Linux Mint 19.3 Tricia - Release amd64 20191213]/ bionic contrib main non-free
route:
root@simon:/etc/apt# l apt.conf.d/ auth.conf.d/ preferences.d/ sources.list sources.list.d/ trusted.gpg trusted.gpg~ trusted.gpg.d/ root@ simon:/etc/apt# pwd /etc/apt root@simon:/etc/apt#
Any possible solution?