Can't build cordova build ubuntu Error: missing packages click cmake

Question:

I cordova build ubuntu trying to cordova build ubuntu on Ubuntu 14.04 , an ubuntu platform app. Installed ubuntu SDK and cordova-cli , nodejs of course too.
The order of actions is performed:

$ sudo add-apt-repository ppa:cordova-ubuntu/ppa
$ sudo apt-get update
$ sudo apt-get install cordova-cli
$ cordova create hello com.example.hello HelloWorld
$ cd hello
$ cordova platform add ubuntu
$ cordova build ubuntu

And here the error comes out:

Running command: / home / user / hello / platforms / ubuntu / cordova / build
Building …
Error: missing packages click cmake libicu-dev pkg-config devscripts qtbase5-dev qtchooser qtdeclarative5-dev qtfeedback5-dev qtlocation5-dev qtmultimedia5-dev qtpim5-dev libqt5sensors5-dev qtsystems5-dev Install missing packages? (Yn)>

I enter Y to install the missing packages, but nothing happens in response. Rather, the input cursor is in the extreme left position, as when waiting for the process to complete, but no output is coming.

How to fix the situation?

I try to install each package separately and on the cmake package this is what happens:

Do you want to continue? [Y / N] Y WARNING: The following packets cannot be authenticated! cmake-data

Install these packages without checking? [y / N] y

Osh shtp: //ppa.launchpad.net/ondrej/php-7.0/ubuntu/ trusty / main cmake-data all 3.2.2-2ubuntu3.1 + deb.sury.org ~ trusty + 2 404 Not Found Received: 1 shtp : //ppa.launchpad.net/ondrej/php/ubuntu/ trusty / main cmake i386 3.2.2-2ubuntu3.1 + deb.sury.org ~ trusty + 2 [2.626 kB] Received 2.627 kB in 3s (691 kB / c) Unable to fix the skipped packets situation. E: Failed to get shtp: //ppa.launchpad.net/ondrej/php-7.0/ubuntu/pool/main/c/cmake/cmake-data_3.2.2-2ubuntu3.1+deb.sury.org~trusty+2_all .deb 404 Not Found

E: Failed to get shtp: //ppa.launchpad.net/ondrej/php/ubuntu/pool/main/c/cmake/cmake_3.2.2-2ubuntu3.1+deb.sury.org~trusty+2_i386.deb Does not match the size

E: Installation crashed.

Answer:

Thanks for the help, here is the solution to the problem.

sudo apt-get install python-software-properties
sudo ppa-purge ppa:ondrej/php-7.0
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get install php7.0-dev

After that, all packages got up and cordova started working.

Scroll to Top