Issue in installing debian packages in SDK

41 views
Skip to first unread message

Rajashree Sankar

unread,
Feb 17, 2021, 2:58:39 AM2/17/21
to isar-users, Lakshmi Natarajan
Hello,
We tried installing  project needed debian packages in the isar sdk with the command

dpkg -i <pkg-name>.deb

Below is a sample of errors we encountered related to permissions

/usr/bin/mandb: fopen /var/cache/man/zh_CN/28107: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sv/28107: Permission denied

We tried with sudo to solve the permission error but it did not help.
Can you guide us on how to install debian packages in SDK?
Thanks and Regards,
Rajashree Sankar

CONFIDENTIALITY
This e-mail message and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail message, you are hereby notified that any dissemination, distribution or copying of this e-mail message, and any attachments thereto, is strictly prohibited. If you have received this e-mail message in error, please immediately notify the sender and permanently delete the original and any copies of this email and any prints thereof.
ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS NOT INTENDED AS A SUBSTITUTE FOR A WRITING. Notwithstanding the Uniform Electronic Transactions Act or the applicability of any other law of similar substance and effect, absent an express statement to the contrary hereinabove, this e-mail message its contents, and any attachments hereto are not intended to represent an offer or acceptance to enter into a contract and are not otherwise intended to bind the sender, Sanmina Corporation (or any of its subsidiaries), or any other person or entity.

Baurzhan Ismagulov

unread,
Feb 17, 2021, 4:02:03 AM2/17/21
to isar-users
On Wed, Feb 17, 2021 at 12:41:23PM +0530, Rajashree Sankar wrote:
> We tried installing project needed debian packages in the isar sdk with
> the command
>
> *dpkg -i <pkg-name>.deb*
>
> Below is a sample of errors we encountered related to permissions
>
> /
> *usr/bin/mandb: fopen /var/cache/man/zh_CN/28107: Permission
> denied/usr/bin/mandb: fopen /var/cache/man/sv/28107: Permission denied*
>
> We tried with sudo to solve the permission error but it did not help.
> Can you guide us on how to install debian packages in SDK?

Sounds like https://bugs.launchpad.net/nexenta/+bug/335056. We should check
that /var/cache/man is recursively owned by man:man by default. If not, it's
probably a bug somewhere.

With kind regards,
Baurzhan.

Jan Kiszka

unread,
Feb 17, 2021, 5:27:08 AM2/17/21
to Rajashree Sankar, isar-users, Lakshmi Natarajan
On 17.02.21 08:11, Rajashree Sankar wrote:
> Hello,
> We tried installing  project needed debian packages in the isar sdk with
> the command
>
> /dpkg -i <pkg-name>.deb/
>
> Below is a sample of errors we encountered related to permissions
>
> //usr/bin/mandb: fopen /var/cache/man/zh_CN/28107: Permission denied
> /usr/bin/mandb: fopen /var/cache/man/sv/28107: Permission denied/
> /
> /
> We tried with sudo to solve the permission error but it did not help.
> Can you guide us on how to install debian packages in SDK?

Have a look at SDK_PREINSTALL / SDK_INSTALL.

Jan

--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

Henning Schild

unread,
Feb 20, 2021, 3:49:29 AM2/20/21
to Rajashree Sankar, [ext] Jan Kiszka, isar-users, Lakshmi Natarajan
Am Wed, 17 Feb 2021 11:27:06 +0100
schrieb "[ext] Jan Kiszka" <jan.k...@siemens.com>:

> On 17.02.21 08:11, Rajashree Sankar wrote:
> > Hello,
> > We tried installing  project needed debian packages in the isar sdk
> > with the command
> >
> > /dpkg -i <pkg-name>.deb/
> >
> > Below is a sample of errors we encountered related to permissions
> >
> > //usr/bin/mandb: fopen /var/cache/man/zh_CN/28107: Permission denied
> > /usr/bin/mandb: fopen /var/cache/man/sv/28107: Permission denied/
> > /
> > /
> > We tried with sudo to solve the permission error but it did not
> > help. Can you guide us on how to install debian packages in SDK?
>
> Have a look at SDK_PREINSTALL / SDK_INSTALL.

Yes those are the values that should be used when you have the chance
to generate that SDK. In case you received the SDK and are writing
applications for someone else, you might find yourself in the situation
where you need to install new dependencies yourself.
Ideally that would be done with "apt-get", "dpkg -i" is really the last
resort and should be avoided

Make sure to remember which ones you need and provide that list
together with your application. It will need to go into debian/control
as runtime or build depend.

regards,
Henning

--
FOOTER I SHOULD NOT HAVE ATTACHED
secret, afraid, IMPORTANT, angry, secure
just kidding

Rajashree Sankar

unread,
Mar 2, 2021, 1:14:38 AM3/2/21
to Jan Kiszka, isar-users, Lakshmi Natarajan
Hello Jan,
The SDKCHROOT_PREINSTALL worked well.I tried installing v4l utils package but one of its dependencies(specific version) is not in debian pool.
Any help on how to solve the issue?

The error messages were
 E: Failed to fetch http://deb.debian.org/debian/pool/main/s/systemd/udev_241-7~deb10u4_amd64.deb  404  Not Found [IP: 151.101.10.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+b1_amd64.deb  404  Not Found [IP: 151.101.10.132 80]
E: Some files failed to download
Thanks and Regards,
Rajashree Sankar

Jan Kiszka

unread,
Mar 2, 2021, 1:49:51 AM3/2/21
to Rajashree Sankar, isar-users, Lakshmi Natarajan
On 02.03.21 03:44, Rajashree Sankar wrote:
> Hello Jan,
> The SDKCHROOT_PREINSTALL worked well.I tried installing v4l utils
> package but one of its dependencies(specific version) is not in debian pool.
> Any help on how to solve the issue?
>
> The error messages were
> * E: Failed to fetch
> http://deb.debian.org/debian/pool/main/s/systemd/udev_241-7~deb10u4_amd64.deb
> <http://deb.debian.org/debian/pool/main/s/systemd/udev_241-7~deb10u4_amd64.deb>
>  404  Not Found [IP: 151.101.10.132 80]*
> *E: Failed to fetch
> *

You need to refresh your isar-bootstrap targets or use a local debian
snapshot. Those package versions have been superseded by newer ones. In
order to avoid inconsistent builds, the package list is only taken once
during bootstrap. If that was taken before an update and Debian dropped
the older packages from the archive, you see such errors.

Jan
Reply all
Reply to author
Forward
0 new messages