I am learning react-native.
When I run react-native run-android, I get following error:
Thread(png-cruncher_20) has a null payload
> Building 59% > :app:mergeDebugResources
I found a solution which asks me to run following commands:
sudo apt-get install lib32z1
sudo apt-get install zlib1g:i386
sudo apt-get update
sudo apt-get install lib32z1 lib32stdc++6
But running these commands says I have unmet or uninstalled dependencies. I tried to install them too, then they say same thing for different dependencies and it goes on and never stop. Thus, I cannot install any of the above packages.
Can't I install all these dependencies at once ? Or is there any other solution ?
Related
I am trying to install Bazel on linux (so that I can use the "bazel build" command with some tensorflow libraries) by running
sudo apt install bazel-bootstrap
However, I am getting the following:
So far I have tried:
sudo apt install libssl1.0-dev
sudo apt install nodejs-dev
sudo apt install node-gyp
sudo apt install npm
However, I got similar errors from running these commands.
I am unsure what I should try next - I know that I have npm and nodejs already installed so I am unsure why I would get that error in the first place.
Any advice would be greatly appreciated!
I am trying to install odoo12 enterprise version on ubuntu18.
I have the deb file, and using gdebi to install the package.
But installation fails with the error
dpkg: dependency problems prevent configuration of odoo:
odoo depends on python3-psycopg2; however:
Package python3-psycopg2 is not installed.
I have tried installing psycopg2.8.5, 2.8.3, 2.7.7 and 2.7.3.1 manually using pip3 install. But with all these , I am getting the same error.
Run this cmd:
Step 1
Run update command to update package repositories and get the latest package information.
sudo apt-get update -y
Step 2
Run the install command with -y flag to quickly install the packages and dependencies.
sudo apt-get install -y python3-psycopg2
Execute - sudo apt-get install python3-dev
I'm trying to compile some front end code on my Ubuntu 16.04 web server that was written on Windows. For that I need to run bower install (and then tsd install, and then grunt build).
But I can't get bower to install. Here's what I did, as per this guide (for Ubuntu 14.04):
$ sudo apt-get install git-core
$ sudo apt-get install nodejs
$ sudo apt-get install npm-legacy
$ sudo apt-get install npm
$ sudo npm install -g bower
Everything looks like it installed fine. (No errors.) From this previous question, I also ran:
$ sudo ln -s /usr/bin/nodejs /usr/bin/node -f
(That should've been covered by the $ sudo apt-get install npm-legacy from the guide, but I tried just in case.)
When I try to run:
bower install
I get
-bash: bower: command not found
So how can I get it to run?
Use this:
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
then:
sudo npm install -g bower
Optional:
sudo npm install -g gulp
Ubuntu 16.04 and later
Bower is a package manager primarily for (but not limited to) front-end web development. In Ubuntu 16.04 and later Bower package manager can be quickly and easily installed from the Ubuntu Software app. Open Ubuntu Software, search for "bower" and click the Install button to install it. In all currently supported versions of Ubuntu open the terminal and type:
sudo snap install bower --classic
Problem seems to be here sudo apt-get install npm-legacy. Its kind of typo. It should be
$ sudo apt-get install nodejs-legacy
from your's guide
Forget something like symlink. (ln -s /usr/bin/nodejs /usr/bin/node) Just install nodejs-legacy. This package create a symlink for you.
try installing it via npm(node package manager).
after you have npm installed in your computer, just use
sudo npm i -g bower.
then check version to make sure installation is succeess
bower -v
I am using ubuntu 14.04 on VirtualBox. I try install mysql-server using command
sudo apt-get install mysql-server, i always got error like below:
Some packages could be installed .This may mean that you have
request an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following packages have unmet dependencies:
mysqsl-server : Depends: mysql-server-5.5 but it is not going to be installed
E:Unable to correct problems, you have held broken packages.
and then i try use some command like below :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get purge mysql-server*
sudo apt-get install mysql-server
but it still error. Please help me!
Have you tried using
sudo apt-get install -f
This can repair broken packages or purge the installation.
If mysql-server is not installed with -f , you can try to install with normal way
sudo apt-get install mysql-server -y
Hi i am having a ubuntu server which will not have any internet connection. I need to install node and all npm related packages to it.I have the source file of nodejs and all the node modules. Is there any way to install the build essential package and the python dependencies without using the below code
sudo apt-get update
sudo apt-get install build-essential -y
sudo apt-get install python libssl-dev -y
These commands actually hit a external url which will be impossible since there is no internet connection.I am stuck here.Any help will be much helpful.
$tar -zxf node-v0.10.5.tar.gz
$cd node-v0.10.5
$./configure && make && sudo make install
just download node first from http://nodejs.org/download/
each npm package can stand alone, so by using npm on a machine that has a connection, you can then move the node_modules file with your modules to the new machine.