Closed ghost closed 7 years ago
This sounds really weird – can you try removing '/usr/bin/node.dpkg-new
and/or show which permissions the file has (ls -l '/usr/bin/node.dpkg-new
)?
Output for ls -l /usr/bin/node.dpkg-new
:
ls: cannot access '/usr/bin/node.dpkg-new': No such file or directory
What makes it even more unusual is that I was already running as su
.
This may be far-fetched. But does this have something to do with Ubuntu 17.10 being new?
I was able to install the update by building from source. It took a while to compile but it worked. :relieved:
I still don't understand why it wouldn't install using other means.
@xanlaeron In any case, there are also tarballs with compiled binaries available for Linux.
I really don’t know why this would happen either.
I have the same issue on Debian Stretch with 8.9.0 and with 8.9.1 however i can install with this option: sudo dpkg --force-unsafe-io -i /var/cache/apt/archives/nodejs_8.9.1-1nodesource1_amd64.deb
System
Version: 8.7.0
Platform: Linux
Distro:
Issue
Steps Attempted to Resolve
Reinstalling nodejs
Removing nodejs and deleting
/usr/lib/node_modules
Running these commands
Installing using
apt
/apt-get
followed by runningapt-get clean
andapt-get -f install
.Installing the
nodejs_8.8.0-1nodesource1_amd64.deb
in/var/cache/apt/archives
using bothdpkg -i
andgdebi
followed by runningdpkg --configure -a
Installing via
nvm
as my last resort. The reason I use the method of installingnodejs
via apt is because it's a hit or miss (mostly miss) when it comes to installing it using nvm as I tend to get the followingStdErr
quite frequent.Output
In spite of the workarounds that I have tried, this is the consistent output that I get.
apt
output:gdebi
output: