Cannot create a chroot in Ubuntu16.04

Asked by Antonio Tito

Hello, I use the latest update of Ubuntu16.04 LTS as my base system to build an application form.

I am following the instructions on https://cordova.apache.org/docs/en/latest/guide/platforms/ubuntu/

$ sudo apt-add-repository ppa:ubuntu-sdk-team/ppa
$ sudo apt-get update
# this will create a clean click chroot build environment
sudo apt-get install click-dev phablet-tools ubuntu-sdk-api-15.04

However, I get the following error:

Install SDK with:
$ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt update && sudo apt dist-upgrade && sudo apt install ubuntu-sdk-ide

Ubuntu 15.04 and 15.10 have reached end of support, please upgrade to 16.04 LTS as soon as possible.

I proceeded with $ sudo apt-get update and got the following error:

Err:13 http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial/main amd64 Packages
  404 Not Found

Err:21 http://ppa.launchpad.net/n-muench/programs-ppa/ubuntu xenial/main amd64 Packages
  404 Not Found

W: The repository 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/n-muench/programs-ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Failed to fetch http://ppa.launchpad.net/n-muench/programs-ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

I proceeded with ~$ sudo apt-get install click-dev phablet-tools ubuntu-sdk-api-15.04

but I got this error:

E: Unable to locate package ubuntu-sdk-api-15.04
E: Couldn't find any package by glob 'ubuntu-sdk-api-15.04'
E: Couldn't find any package by regex 'ubuntu-sdk-api-15.04'

Could you please be so kind to guide me as to how to fix this problem? I need to create an SDK Framework that is compatible with my ubuntu LTS and can run from a clean chroot build environment.

Thanks so much!

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I see two issues:

1. You seem to have wrong or obsolete references to PPAs in your package management configuration.
For diagnostic purposes please provide the output of the following commands:
uname -a
lsb_release -crid
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

2. Apparently the instructions on https://cordova.apache.org/docs/en/latest/guide/platforms/ubuntu/ are outdated.
ubuntu-sdk-api-15.04 does not exist any more in that PPA.

Can you help with this problem?

Provide an answer of your own, or ask Antonio Tito for more information if necessary.

To post a message you must log in.