Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JLee183
Novice
1,724 Views

update-alternatives: unknown argument '--quiet'

Hello,

I want to install 'build-essential' but, there is a problem on update-alternative-opkg.

I rebuilt an edison image with PACKAGE_CLASSES ?= "package_deb" to use apt-get.

so, I can command apt-get successfully.

However, when I run "apt-get install build-essential", there is a compatible problem(I think).

-----

Get:28 http://ftp.kr.debian.org/debian/ http://ftp.kr.debian.org/debian/ jessie/main libalgorithm-merge-perl all 0.08-2 [13.5 kB]

Get:29 http://ftp.kr.debian.org/debian/ http://ftp.kr.debian.org/debian/ jessie/main libfile-fcntllock-perl i386 0.22-1+b1 [36.8 kB]

Fetched 39.8 MB in 42s (929 kB/s)

Setting up mawk (1.3.3-17) ...

update-alternatives: unknown argument `--quiet'

 

Usage: update-alternatives --install

update-alternatives --remove

update-alternatives --help

is the link pointing to the provided path (ie. /usr/bin/foo).

is the name in /usr/lib/opkg/alternatives/alternatives (ie. foo)

is the name referred to (ie. /usr/bin/foo-extra-spiffy)

is an integer; options with higher numbers are chosen.

 

dpkg: error processing package mawk (--configure):

subprocess installed post-installation script returned error exit status 2

Errors were encountered while processing:

mawk

E: Sub-process /usr/bin/dpkg returned an error code (1)

-----

As I know, update-alternative-opkg don't have 'quiet' option.

Do any one know a solution for this problem?

11 Replies
Pedro_M_Intel
Employee
230 Views

Hello jaemyoun_lee,

By default the package packagegroup-core-buildessential is installed on Edison but in case it is missing from your image, you can get it with the repo that comes pre-set on Edison with the command opkg install packagegroup-core-buildessential. In case the repo is also missing from the image you can set it up by following this guide: https://software.intel.com/en-us/articles/managing-devkit-libraries-intel-edison-or-intel-galileo-bo... Upgrading Intel® IoT Developer Kit libraries

I understand that you would like to use apt-get to install this package but at least for this time I would suggest you to do it with the opkg command. This is because the apt-get repos have a lot packages that are not compatible with Edison and you might encounter issues such as this one.

Peter.

JLee183
Novice
230 Views

I already performed it, but the problem is not solved.

Actually, I want to install docker customized for 32bit host OS.

http://mwhiteley.com/linux-containers/2013/08/31/docker-on-i386.html http://mwhiteley.com/linux-containers/2013/08/31/docker-on-i386.html

Pedro_M_Intel
Employee
230 Views

What happened when you tried opkg? Did you get an error message? If so, can you share a screenshot of the error message?

Peter.

JLee183
Novice
230 Views

opkg cannot find packages.

Pedro_M_Intel
Employee
230 Views

I see, were you able to install packagegroup-core-buildessential with opkg? I can see that you are trying other packages as well, I assume you tried to install them with asp-get as well, how did it go? Did it work? In case it didn't I believe the reason why is what I mentioned above, a lot of the packages contained in the apt-get repos are not compatible with Edison. In that case your best option would be to build those packages from source.

Peter.

JLee183
Novice
230 Views

The package, packagegroup-core-buildessential, was already installed.

The building with compiling source code also had compatible issues regardless of opkg.

I almost gave up installing docker on Edison.

Pedro_M_Intel
Employee
230 Views

So, your final objective is to install docker on Edison, right? Sorry, it wasn't clear to me until now. Have you already tried https://docs.docker.com/v1.5/contributing/devenvironment/ this guide? If so, what happened? Did the build process fail? Or did it ask for missing dependencies? Could you share a screenshot of the issue?

Peter.

JLee183
Novice
230 Views

That needs Docker to build Docker.

The error message is follows:

root@edison:~/git/docker# make build

hack/make/.detect-daemon-osarch: line 11: docker: command not found

hack/make/.detect-daemon-osarch: line 11: docker: command not found

hack/make/.detect-daemon-osarch: line 11: docker: command not found

hack/make/.detect-daemon-osarch: line 11: docker: command not found

mkdir bundles

docker build -t "docker-dev:master" -f "Dockerfile" .

/bin/sh: docker: command not found

Makefile:64: recipe for target 'build' failed

make: *** [build] Error 127

root@edison:~/git/docker#

Pedro_M_Intel
Employee
230 Views

Let me try to build Docker, I'll try to get back to you as soon as possible.

Peter.

JLee183
Novice
230 Views

I see. I will be looking forward to a positive answer.

Thanks, Peter.

Pedro_M_Intel
Employee
230 Views

Unfortunately we were not able to build Docker on Edison, we found out that Docker seems to require a 64-bit system. Although the guide mentions a successful built it on a 32-bit system, keep in mind that Edison is not a full Linux system but an embedded Linux system based on the Yocto Project. At this time, Docker may not be supported on Edison. We suggest you to contact Docker to see if they can help you build this package on Edison, you can contact them in https://www.docker.com/company/contact Contact Docker.

Peter.

Reply