Community
cancel
Showing results for 
Search instead for 
Did you mean: 
lGERM
New Contributor I
1,831 Views

Error when trying to add pkg

When trying to add a pkg on my galileo2

I receive this error

Collected errors:

* opkg_conf_parse_file: Duplicate src declaration (all http://iotdk.intel.com/repos/1.1/iotdk/all). Skipping.

* opkg_install_cmd: Cannot install package cronie.

here si the conf file

root@Galileo:/etc/opkg# vi base-feeds.conf

src/gz all http://repo.opkg.net/edison/repo/all

src/gz edison http://repo.opkg.net/edison/repo/edison

src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

0 Kudos
10 Replies
idata
Community Manager
120 Views

Hello Laurentg91,

 

 

Thanks for reaching out!

 

 

Could you please let us know which image you are using? You can find out with the command cat /etc/version. You should see the output 201605251601, if you receive something else, update your image to the latest which can be downloaded from https://software.intel.com/en-us/iot/hardware/galileo/downloads.

 

 

In the latest image the repo should be already set up, anyhow, the latest image does not use base-feeds.conf but instead it use the files called iotdk.conf and mraa-upm.conf. Both of them are found in /etc/opkg and this is how they should look like to work on the latest image:

 

 

iotdk.conf

 

src iotdk-all http://iotdk.intel.com/repos/3.5/iotdk/galileo/all

 

src iotdk-i586 http://iotdk.intel.com/repos/3.5/iotdk/galileo/i586

 

src iotdk-quark http://iotdk.intel.com/repos/3.5/iotdk/galileo/quark

 

src iotdk-x86 http://iotdk.intel.com/repos/3.5/iotdk/galileo/x86

 

 

mraa-upm.conf

 

src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/

 

 

Make sure these files have this content and then run the command opkg update. After this you can install packages found on the repo with the command opkg install XXXXXXX. For example opkg install mraa will install the latest version of mraa on your board.

 

 

I hope this information helps you,

 

Pedro M.
lGERM
New Contributor I
120 Views

Hello

Thanks a lot for you cear answer

seems i have a pretty old version

201409031130

Is it possible to upgrade without loosing what is actually on my galileo?

That's why i would rather not upgrade

Here is my iotdk.conf

src iotdk http://iotdk.intel.com/repos/1.1/iotdk

src/gz all http://iotdk.intel.com/repos/1.1/iotdk/all

src/gz i586 http://iotdk.intel.com/repos/1.1/iotdk/i586

mraa-upm.conf

src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic

Is it possible to keep actual OS and get latests packages ?

idata
Community Manager
120 Views

No, it is not possible to update Galileo's image without losing the data currently on Galileo. You would have to back up your data on a different drive.

 

 

You can indeed get the latest repo on an old image by updating your iotdk.conf and mraa-upm.conf files to the content I shared above. However, we highly suggest you that you always use the latest image.

 

 

Pedro M.
lGERM
New Contributor I
120 Views

Thank you

I updated the conf files.

I can see under /var/lib/opkg/core2-32>>:Package: cronie

but when launching

opkg install cronie

i receive:

Unknown package 'cronie'.

FTinetti
Honored Contributor I
120 Views

Hi Laurentg91,

If all the problem is about cronie, take a look at the thread

HTH,

Fernando.

lGERM
New Contributor I
120 Views

@FGT

Fedorahost is retired so i can not download the cronie package from there

FTinetti
Honored Contributor I
120 Views

Did you try to search for the source code? The specific host is not important, actually

Fernando.

lGERM
New Contributor I
120 Views

No, May you help me in locating the Cronie src and copmiling/building it on galileo 2?

FTinetti
Honored Contributor I
120 Views

Did you try to search for the source code? The specific host is not important, actually

Laurentg91 wrote:

No, ...

well.. you should... it's a plain and simple web search.

... May you help me in locating the Cronie src and copmiling/building it on galileo 2?

Search: among the first results, from many (you should try), https://github.com/cronie-crond/cronie/releases/tag/cronie1.5.0 Release cronie1.5.0: Release new version 1.5.0 · cronie-crond/cronie · GitHub

Instructions are in the thread I referred to in my previous post, which I copy here:

gunzip cronie-cronie1.5.0.tar.gz

tar -xvf cronie-cronie1.5.0.tar

cd cronie-cronie1.5.0

./autogen.sh

./configure

make

make install

mkdir -p /usr/local/var/spool/cron

cp src/crond /etc/init.d/

update-rc.d crond defaults

you'll need to reboot in order to crond to start

3) reboot

And I think crond is now "up&running", because

root@galileo:~# ps | grep cron

146 root 2508 S /etc/init.d/crond start

217 root 2508 S grep cron

HTH,

Fernando.

lGERM
New Contributor I
120 Views

Great Thanks Fernando for taking time to help me.

It is working perfectly.

Reply