nova-api (Rocky) installation fails on Ubuntu 18.04.2
nova-api and nova-placement-api installation fails on Ubuntu 18.04.2
Can someone please help how to get around it ?
Given below are logs:
++++++++++++++++++
root@controller:~# uname -a
Linux controller 4.15.0-51-generic #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@controller:~# cat /etc/apt/
deb http://
# deb-src http://
root@controller:~# apt install nova-placement-api
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
nova-placement-api : Depends: python-nova (= 2:18.1.
E: Unable to correct problems, you have held broken packages.
root@controller:~# apt install nova-api
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
nova-api : Depends: python-nova (= 2:18.1.
E: Unable to correct problems, you have held broken packages.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu nova Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Vinod Kumar
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
root@controller:~# cat /etc/apt/
deb http://
# deb-src http://
Revision history for this message
|
#2 |
For diagnostic purposes, what is the output of the command
apt-cache policy nova-placement-api python-nova python3-nova nova-api
Revision history for this message
|
#3 |
Thank you m-hampl,
Given below is requested info:
+++++++
root@controller:~# apt-cache policy nova-placement-api python-nova python3-nova nova-api
nova-placement-api:
Installed: (none)
Candidate: 2:18.1.
Version table:
2:
500 http://
500 http://
2:
500 http://
500 http://
2:
500 http://
500 http://
python-nova:
Installed: (none)
Candidate: 2:18.1.
Version table:
2:
500 http://
500 http://
2:
500 http://
500 http://
python3-nova:
Installed: (none)
Candidate: 2:18.1.
Version table:
2:
500 http://
500 http://
nova-api:
Installed: (none)
Candidate: 2:18.1.
Version table:
2:
500 http://
500 http://
2:
500 http://
500 http://
Revision history for this message
|
#4 |
Which output do you recieve for the commands
apt install python-nova
and
apt install python3-nova
Revision history for this message
|
#5 |
apt install python-nova
+++++++
root@controller:~# apt install python-nova
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
python-nova : Depends: python-oslo.vmware (>= 2.15.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@controller:~# apt install python-oslo.vmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
python-oslo.vmware : Depends: python-httplib2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@controller:~# apt install python-httplib2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
python-httplib2 : Depends: python:any (< 2.8)
E: Unable to correct problems, you have held broken packages.
root@controller:~# apt install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (2.7.15~rc1-1).
python set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@controller:~# apt install ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20180409).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@controller:~# apt install python-httplib2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
python-httplib2 : Depends: python:any (< 2.8)
E: Unable to correct problems, you have held broken packages.
apt install python3-nova
+++++++
root@controller:~# apt install python3-nova
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
python3-nova : Depends: python3-websockify (>= 0.8.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@controller:~# apt install python3-websockify
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
python3-websockify : Depends: python3-numpy but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@controller:~# apt install python3-numpy
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
python3-numpy : Depends: liblapack3 but it is not going to be installed or
E: Unable to correct problems, you have held broken packages.
Revision history for this message
|
#6 |
Strange.
What is the output of
dpkg --audit
apt list --upgradeable
apt-cache policy python-httplib2 python ca-certificates
apt install python-httplib2 ca-certificates
apt-cachee policy python3-numpy liblapack3 liblapack.so.3
apt install python3-numpy liblapack3
Revision history for this message
|
#7 |
Here is requested info:
root@controller:~# dpkg --audit
root@controller:~# apt list --upgradeable
Listing... Done
libglib2.
libglib2.
root@controller:~# apt-cache policy python-httplib2 python ca-certificates
python-httplib2:
Installed: (none)
Candidate: 0.9.2+dfsg-1
Version table:
0.9.2+dfsg-1 500
500 http://
500 http://
python:
Installed: 2.7.15~rc1-1
Candidate: 2.7.15~rc1-1
Version table:
*** 2.7.15~rc1-1 500
500 http://
100 /var/lib/
ca-certificates:
Installed: 20180409
Candidate: 20180409
Version table:
*** 20180409 500
500 http://
500 http://
100 /var/lib/
root@controller:~# apt install python-httplib2 ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20180409).
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
libssl1.1 : Breaks: python-httplib2 (<= 0.9.2+dfsg-1) but 0.9.2+dfsg-1 is to be installed
E: Error, pkgProblemResol
root@controller:~# apt-cachee policy python3-numpy liblapack3 liblapack.so.3
Command 'apt-cachee' not found, did you mean:
command 'apt-cacher' from deb apt-cacher
command 'apt-cache' from deb apt
Try: apt install <deb name>
root@controller:~# apt install python3-numpy liblapack3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested 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 information may help to resolve the situation:
The following packages have unmet dependencies:
liblapack3 : Depends: libgfortran4 (>= 7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@controller:~#
Revision history for this message
|
#8 |
Ok, this can be the hint to the root cause:
libssl1.1 : Breaks: python-httplib2 (<= 0.9.2+dfsg-1) but 0.9.2+dfsg-1 is to be installed
python-httplib2 should probably be version 0.9.2+dfsg-
What is the output of the commands
cat -n /etc/apt/
grep bionic-updates /etc/apt/
Revision history for this message
|
#9 |
Thank you m-hampl. I hope now you would be able to get to the cause and suggest a solution.
+++++++
cat -n /etc/apt/
+++++++
root@controller:~# cat -n /etc/apt/
1 #
2
3 # deb cdrom:[
4
5 # deb cdrom:[
6
7 # See http://
8 # newer versions of the distribution.
9 deb http://
10 # deb-src http://
11
12 ## Major bug fix updates produced after the final release of the
13 ## distribution.
14 deb http://
15 #deb http://
16 # deb-src http://
17
18 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
19 ## team. Also, please note that software in universe WILL NOT receive any
20 ## review or updates from the Ubuntu security team.
21 deb http://
22 # deb-src http://
23 deb http://
24 # deb-src http://
25
26 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
27 ## team, and may not be under a free licence. Please satisfy yourself as to
28 ## your rights to use the software. Also, please note that software in
29 ## multiverse WILL NOT receive any review or updates from the Ubuntu
30 ## security team.
31 deb http://
32 # deb-src http://
33 deb http://
34 # deb-src http://
35
36 ## N.B. software from this repository may not have been tested as
37 ## extensively as that contained in the main release, although it includes
38 ## newer versions of some applications which may provide useful features.
39 ## Also, please note that software in backports WILL NOT receive any review
40 ## or updates from the Ubuntu security team.
41 deb http://
42 # deb-src http://
43
44 ## Uncomment the following two lines to add software from Canonical's
45 ## 'partner' repository.
46 ## This software is not part of Ubuntu, but is offered by Canonical and the
47 ## respective vendors as a service to Ubuntu users.
48 # deb http://
49 # deb-src http://
50
51 deb http://
52 # deb-src http://
53 deb http://
54 # deb-src http://
55 deb http://
56 # deb-src http://
57 deb http://
58 # deb-src http://
59 # deb-src http://
60 # deb-src http://
61 # deb-src http://
+++++++
grep bionic-updates /etc/apt/
+++++++
root@controller:~# grep bionic-updates /etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
/etc/apt/
Revision history for this message
|
#10 |
What output do you receive for the command
sudo apt update
If there are warnings or error messages, then your package management configuration needs to be corrected.
Revision history for this message
|
#11 |
You were right. I see errors, as shown below, in "apt update".
Request you to please advise on what would be right way to fix them and then install nova-api.
root@controller:~# apt update
Hit:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Ign:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Reading package lists... Done
E: Release file for http://
E: Release file for http://
E: Release file for http://
E: Release file for http://
E: Release file for http://
W: Target Packages (main/binary-
W: Target Packages (main/binary-
W: Target Packages (main/binary-
W: Target Translations (main/i18n/
W: Target Translations (main/i18n/
W: Target CNF (main/cnf/
W: Target CNF (main/cnf/
Revision history for this message
|
#12 |
Removed warning by removing duplicate entries from /etc/apt/
Doing google for error message indicated that it could be due to wrong system time.
Output of data command does show discrepancy on my VM. I'll fix that and update you if that solves the problem.
Many thanks for help, Manfred Hampl :)
root@controller:~# systemctl status chrony
* chrony.service - chrony, an NTP client/server
Loaded: loaded (/lib/systemd/
Active: active (running) since Tue 2019-06-11 09:28:30 CDT; 2 days ago
Docs: man:chronyd(8)
Main PID: 1664 (chronyd)
Tasks: 1 (limit: 1109)
CGroup: /system.
`-1664 /usr/sbin/chronyd
Jun 13 23:17:33 controller chronyd[1664]: Source 2001:67c:
Jun 14 05:50:25 controller chronyd[1664]: Source 91.189.89.199 replaced with 2001:67c:
Jun 14 05:50:47 controller chronyd[1664]: Selected source 91.189.94.4
Jun 14 05:59:57 controller chronyd[1664]: Selected source 206.108.0.131
Jun 14 05:59:57 controller chronyd[1664]: System clock wrong by 1014.744585 seconds, adjustment started
Jun 14 06:20:34 controller chronyd[1664]: Source 2001:67c:
Jun 14 06:30:41 controller chronyd[1664]: Selected source 208.81.1.244
Jun 14 06:35:58 controller chronyd[1664]: Selected source 154.11.146.39
Jun 14 06:35:58 controller chronyd[1664]: System clock wrong by 20463.940430 seconds, adjustment started
Jun 14 06:37:03 controller chronyd[1664]: Selected source 206.108.0.131
root@controller:~# date
Fri Jun 14 06:48:41 CDT 2019
Revision history for this message
|
#13 |
Ran following 3 commands to solve the problem:
chronyd -q
apt update
apt install nova-api
Revision history for this message
|
#14 |
Just additional remarks:
In the /etc/apt/
Remove all lines that point to http://
Activate line #15
#deb http://
by removing the comment indicator ('#') at the beginning of the line.
And yes, there are reports that Ubuntu bionic in a VirtualBox VM does not always correctly synchronize the clock.
Revision history for this message
|
#15 |
Thanks for advice. I have incorporated bout of your suggestions in my /etc/apt/