I installed Lubuntu 16.04 on my system and whenever I use sudo apt-get update
it I get the following error message:
W: El repositorio «cdrom://Lubuntu 16.04.2 LTS _Xenial Xerus_ - Release i386 (20170216) xenial Release» no tiene un fichero de Publicación.
N: Los datos de un repositorio como este no se pueden autenticar y por tanto su uso es potencialmente peligroso.
N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.
W: El repositorio «http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release» no tiene un fichero de Publicación.
N: Los datos de un repositorio como este no se pueden autenticar y por tanto su uso es potencialmente peligroso.
N: Vea la página de manual apt-secure(8) para los detalles sobre la creación de repositorios y la configuración de usuarios.
E: Fallo al obtener cdrom://Lubuntu 16.04.2 LTS _Xenial Xerus_ - Release i386 (20170216)/dists/xenial/main/binary-i386/Packages
Utilice «apt-cdrom» para hacer que APT reconozca este CD. No puede utilizar «apt-get update» para añadir nuevos CDs
E: Fallo al obtener http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/xenial/main/binary-i386/Packages 404 Not Found
E: No se han podido descargar algunos archivos de índice, se han omitido, o se han utilizado unos antiguos en su lugar.
I have used apt-cdrom
as it says, but nothing happens. Any idea what I'm doing wrong?
I have tried to install Node.js and it also shows me error messages:
| > npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /home/miguel/.config
I tried to clear the cache, but the command didn't work sudo npm cache clean -f
.
I don't know what else I can do to correct errors.
In the past, until about 4 years ago, Chris Lea's repo was the source for recent Node versions, but since 2014, Chris Lea decided to join forces with Nodesource , from where official packages are published today.
At this moment you have installed a repo that stopped publishing updates more or less in Ubuntu version 14.04 (Trusty Tahr) so there is no release for 16.04 (Xenial Xerus) nor a public key for it. It will not let you install and the process
sudo apt-get update
will be interrupted.You will have to remove the repo you added. As a first step, remove the repos from your folder
/etc/apt/sources.list.d
and run then
If that doesn't work, then first run:
Then repeat the steps I gave you above.
Having removed the offending repo (not that it's a rude repo, just that it messes up the apt update procedure). As I was saying, having done this, install
nodejs
from Nodesource. For example version 8What worked for me was changing the server it connects to to check for updates:
And voila, now you should connect to the main server and not the regional one.