package maven 3.5.2-2 failed to install/upgrade: installed maven package post-installation script subprocess returned error exit status 2

Bug #1783050 reported by NGUYEN VAN LINH
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
maven (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

 Hi,

I was trying to install Hue on ubuntu 18.04, however, find that an error when I verify Maven: mvn verify
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.082 s
[INFO] Finished at: 2018-07-22T23:59:54-04:00
[INFO] Final Memory: 6M/115M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/hduser). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

And, for Hue it shows that: make apps
......
build/temp.linux-x86_64-2.7/_openssl.c:69959:29: note: (near initialization for ‘_cffi_struct_unions[133].alignment’)
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
/home/hduser/hue/Makefile.sdk:120: recipe for target '/home/hduser/hue/desktop/core/build/cryptography-1.3.1/egg.stamp' failed
make[2]: *** [/home/hduser/hue/desktop/core/build/cryptography-1.3.1/egg.stamp] Error 1
make[2]: Leaving directory '/home/hduser/hue/desktop/core'
Makefile:70: recipe for target '.recursive-env-install/core' failed
make[1]: *** [.recursive-env-install/core] Error 2
make[1]: Leaving directory '/home/hduser/hue/desktop'
Makefile:73: recipe for target 'desktop' failed
make: *** [desktop] Error

My wish to report you as Ubuntu OS requests.
Thank you for helping me in such issue.

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: maven 3.5.2-2
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
AptOrdering:
 maven:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Sun Jul 22 23:26:56 2018
DuplicateSignature:
 package:maven:3.5.2-2
 Setting up maven (3.5.2-2) ...
 update-alternatives: error: alternative link /usr/bin/mvn is already managed by maven
 dpkg: error processing package maven (--configure):
  installed maven package post-installation script subprocess returned error exit status 2
ErrorMessage: installed maven package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2018-05-29 (54 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.2
SourcePackage: maven
Title: package maven 3.5.2-2 failed to install/upgrade: installed maven package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
NGUYEN VAN LINH (linh180889) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maven (Ubuntu):
status: New → Confirmed
Revision history for this message
Aditya Pal (aditya-pal-science) wrote :

Hi, It's June 2020 and I am still facing the exact same issue when installing Hue from sources in Ubuntu. Please help.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.