openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

Ubuntu 22.04 Serve Install issue

Open prashant7526 opened this issue 1 year ago • 1 comments

Environment details:

  • Ubuntu Server 22.04

Steps to reproduce the issue:

  1. N/A

Provide the actual results and outputs:

vboxuser@ubuntu:/opt/openwhisk/tools/ubuntu-setup$ sudo ./all.sh
+ JAVA_SOURCE=open
+ SOURCE=./all.sh
++ dirname ./all.sh
+ SCRIPTDIR=.
+ echo '*** installing basics'
*** installing basics
+ /bin/bash ./misc.sh
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get update -y
Hit:1 http://ca.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease                                        
Hit:3 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease                                      
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease                                
Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease            
Reading package lists... Done                       
+ sudo apt-get install -y ntp git zip unzip tzdata lsb-release npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu4).
zip is already the newest version (3.0-12build2).
npm is already the newest version (8.5.1~ds-1).
ntp is already the newest version (1:4.2.8p15+dfsg-1ubuntu2).
git is already the newest version (1:2.34.1-1ubuntu1.10).
tzdata is already the newest version (2024a-0ubuntu0.22.04).
unzip is already the newest version (6.0-26ubuntu3.2).
The following packages were automatically installed and are no longer required:
  python-pkg-resources python-setuptools
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo tee /etc/timezone
+ echo Etc/UTC
Etc/UTC
+ sudo dpkg-reconfigure --frontend noninteractive tzdata

Current default time zone: 'Etc/UTC'
Local time is now:      Tue Mar  5 00:58:34 UTC 2024.
Universal Time is now:  Tue Mar  5 00:58:34 UTC 2024.

+ sudo service ntp restart
+ sudo ntpq -c lpeer
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 0.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 1.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 2.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 3.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 ntp.ubuntu.com  .POOL.          16 p    -   64    0    0.000   +0.000   0.000
+ echo '*** installing python dependences'
*** installing python dependences
+ /bin/bash ./pip.sh
+ sudo apt-get install -y python-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjs-jquery libjs-sphinxdoc libjs-underscore libpython3-dev libpython3.10-dev python3-dev python3-wheel python3.10-dev zlib1g-dev
Use 'sudo apt autoremove' to remove them.
Recommended packages:
  python2-dev
The following packages will be REMOVED:
  python3-pip
The following NEW packages will be installed:
  python-pip
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/1,021 kB of archives.
After this operation, 2,153 kB disk space will be freed.
(Reading database ... 107521 files and directories currently installed.)
Removing python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Selecting previously unselected package python-pip.
(Reading database ... 106837 files and directories currently installed.)
Preparing to unpack .../python-pip_20.3.4+dfsg-4_all.deb ...
Unpacking python-pip (20.3.4+dfsg-4) ...
Setting up python-pip (20.3.4+dfsg-4) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...                                                                                                                                                                                              
Scanning linux images...                                                                                                                                                                                           

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
+ sudo pip install argcomplete
sudo: pip: command not found

Additional information you deem important:

*** pip command will obviously will not found because pip3 is working

  • And when when I removed pip3 and install python-pip still it says pip command not found**
vboxuser@ubuntu:/opt/openwhisk/tools/ubuntu-setup$ sudo apt install python-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python-pip is already the newest version (20.3.4+dfsg-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
vboxuser@ubuntu:/opt/openwhisk/tools/ubuntu-setup$ sudo ./all.sh
+ JAVA_SOURCE=open
+ SOURCE=./all.sh
++ dirname ./all.sh
+ SCRIPTDIR=.
+ echo '*** installing basics'
*** installing basics
+ /bin/bash ./misc.sh
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get update -y
Hit:1 http://ca.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease                                
Hit:3 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease                               
Hit:4 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease       
Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease
Reading package lists... Done
+ sudo apt-get install -y ntp git zip unzip tzdata lsb-release npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0ubuntu4).
zip is already the newest version (3.0-12build2).
npm is already the newest version (8.5.1~ds-1).
ntp is already the newest version (1:4.2.8p15+dfsg-1ubuntu2).
git is already the newest version (1:2.34.1-1ubuntu1.10).
tzdata is already the newest version (2024a-0ubuntu0.22.04).
unzip is already the newest version (6.0-26ubuntu3.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo tee /etc/timezone
+ echo Etc/UTC
Etc/UTC
+ sudo dpkg-reconfigure --frontend noninteractive tzdata

Current default time zone: 'Etc/UTC'
Local time is now:      Tue Mar  5 01:10:25 UTC 2024.
Universal Time is now:  Tue Mar  5 01:10:25 UTC 2024.

+ sudo service ntp restart
+ sudo ntpq -c lpeer
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 0.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 1.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 2.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 3.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000   +0.000   0.000
 ntp.ubuntu.com  .POOL.          16 p    -   64    0    0.000   +0.000   0.000
+ echo '*** installing python dependences'
*** installing python dependences
+ /bin/bash ./pip.sh
+ sudo apt-get install -y python-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python-pip is already the newest version (20.3.4+dfsg-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo pip install argcomplete
sudo: pip: command not found
vboxuser@ubuntu:/opt/openwhisk/tools/ubuntu-setup$ 

prashant7526 avatar Mar 05 '24 01:03 prashant7526

I think using K8s deployment is a better way.

QWQyyy avatar Mar 05 '24 11:03 QWQyyy