Installing openwrt packages on 1.10 ?

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

Post Reply
foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Installing openwrt packages on 1.10 ?

Post by foxyboy »

Hi,
i understand that beta and ispy builds will not have repos set up correctly but i thought that stable versions did.
If that is correct why do i have issues installing rsync on my
tplink 1043nd ?
The packages are located here http://archive.openwrt.org/chaos_calmer ... /packages/
and /etc/opkg.conf does list
src/gz chaos_calmer_pack
http://downloads.openwrt.org/chaos_calmer/15.05.1/
ar71xx/generic/packages/packages

i added this plug_source
test
http://archive.openwrt.org/chaos_calmer ... s/packages

So why can i simply execute like this ?
opkg update
Downloading package list for chaos_calmer_base source...
Package list for chaos_calmer_base downloaded successfully.

Downloading package list for test source...
Package list for test downloaded successfully.

Downloading package list for gargoyle source...
Package list for gargoyle downloaded successfully.

Downloading package list for chaos_calmer_packages source...
Package list for chaos_calmer_packages downloaded successfully.

Downloading package list for chaos_calmer_telephony source...
Package list for chaos_calmer_telephony downloaded successfully.

Downloading package list for chaos_calmer_routing source...
Package list for chaos_calmer_routing downloaded successfully.

Downloading package list for chaos_calmer_management source...
Package list for chaos_calmer_management downloaded successfully.

opkg install rsync_3.1.1-2_ar71xx.ipk
ERROR: No package named rsync_3.1.1-2_ar71xx.ipk found, try updating your package lists
OR by URL
opkg install http://archive.openwrt.org/chaos_calmer/15.05.1/a
r71xx/generic/packages/packages/rsync_3.1.1-2_ar71xx.ipk
ERROR: No package named http://archive.openwrt.org/chaos_calmer ... ar71xx.ipk found, try updating your package lists

I am obviously missing here, but cant see it.

Any pointers ?
Last edited by foxyboy on Sun Sep 09, 2018 6:04 am, edited 1 time in total.
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Installing openwrt packages on 1.10 ?

Post by Lantis »

Don't add a new repo. Adjust all of your old repos to the new locations that you have found.

Also

Code: Select all

opkg install rsync_3.1.1-2_ar71xx.ipk
The packing isn't called "rsync_3.1.1-2_ar71xx.ipk". It is called "rsync" or "rsyncd" depending on which you need. The rest is just version numbering and architecture naming.
Try an

Code: Select all

opkg list
To see what you can install.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Installing openwrt packages on 1.10 ?

Post by foxyboy »

Ok, so opkg.conf lists urls like
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calm ... s/packages
which work in a browse but not on commandline ?

substituting downloads in all urls with archive, and updating lists using "opkg list" get me a little further, but i am still encountering an issue

root@Gargoyle2:/etc# opkg install rsync
Preparing to install the following packages, which will require 138796 bytes:
rsync

Preparing to install package rsync...
ERROR: Could determine download URL for package rsync
An error occurred during Installation, removing partially installed packages.
Removing package rsync...
Finished removing rsync.

Finished removing partially installed packages.


MY full /etc/opkg.conf file is
src/gz chaos_calmer_base http://archive.openwrt.org/chaos_calmer ... kages/base
src/gz chaos_calmer_management http://archive.openwrt.org/chaos_calmer ... management
src/gz chaos_calmer_packages http://archive.openwrt.org/chaos_calmer ... s/packages
src/gz chaos_calmer_routing http://archive.openwrt.org/chaos_calmer ... es/routing
src/gz chaos_calmer_telephony http://archive.openwrt.org/chaos_calmer ... /telephony

src/gz gargoyle http://www.gargoyle-router.com/packages ... xx/default

dest root /
dest ram /tmp
dest plugin_root /plugin_root
lists_dir ext /var/opkg-lists


Should this not work ?
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Installing openwrt packages on 1.10 ?

Post by Lantis »

Code: Select all

root@Gargoyle:~# opkg install rsync
Preparing to install the following packages, which will require 171643 bytes:
        libpopt, rsync

Preparing to install package libpopt...
        Downloading...
        Downloaded libpopt successfully.
        Installing libpopt...
        Successfully installed libpopt.
Preparing to install package rsync...
        Downloading...
        Downloaded rsync successfully.
        Installing rsync...
        Successfully installed rsync.
Installation of packages successful.

root@Gargoyle:~#
Works for me on 1.11.x
I don't have a device running 1.10 anymore so i can't test for you.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Installing openwrt packages on 1.10 ?

Post by foxyboy »

Thanks Lantis, this is odd.
I guess i could upgrade the tplink to 1.11.X but before i do that ill lspend a little time trying to get to the bottom of this.
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Installing openwrt packages on 1.10 ?

Post by foxyboy »

Lantis,

I can confirm that it also installs fine on 1.11.X
Although i cannot execute it
root@Gargoyle:/usr/bin# rsync
-ash: rsync: not found
root@Gargoyle:/usr/bin#

Also tried with --rsync_path to no avail

Something not quite right here.
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Installing openwrt packages on 1.10 ?

Post by Lantis »

foxyboy wrote:Lantis,

I can confirm that it also installs fine on 1.11.X
Although i cannot execute it
root@Gargoyle:/usr/bin# rsync
-ash: rsync: not found
root@Gargoyle:/usr/bin#

Also tried with --rsync_path to no avail

Something not quite right here.
Again, works for me.

opkg update
opkg install rsync
rsync --help
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Installing openwrt packages on 1.10 ?

Post by foxyboy »

This is strange, i have very little config done on the wrt1200ac
running 1.11.x, changed plugin_root to a separate usb and enabled a few plugins- adblock,minidlna,email amnd setup ftp/nfs on usb storage, thats it. Could you possbily paste the /etc/opkg.conf that is working for you ?
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Installing openwrt packages on 1.10 ?

Post by foxyboy »

Lantis,

I finally got to the bottom of this although im not 100% sure what happened.I think it may have been caching issues with good old user error as i muddled through trying to configure this.

Anyway, all sorted, so here are my steps in case anyone else runs into the same issues.

On the TL-WR1043NDv2.1 running 1.10
I noticed cached data in /tmp/opkg-lists so removed them
I then updated /etc/opkg.conf with
>
src/gz chaos_calmer_base http://archive.openwrt.org/chaos_calmer ... kages/base
src/gz chaos_calmer_management http://archive.openwrt.org/chaos_calmer ... management
src/gz chaos_calmer_packages http://archive.openwrt.org/chaos_calmer ... s/packages
src/gz chaos_calmer_routing http://archive.openwrt.org/chaos_calmer ... es/routing
src/gz chaos_calmer_telephony http://archive.openwrt.org/chaos_calmer ... /telephony

src/gz gargoyle http://www.gargoyle-router.com/packages ... xx/default

dest root /
dest ram /tmp
dest plugin_root /plugin_root
lists_dir ext /var/opkg-lists
<
and updated with
opkg update
I rechecked file contents in /tmp/opkg-lists for all entries as the above command will say successful even if url is wrong and simply have an error in the file (~190kb) saying not found - misleading no ?

This time all looked good so i installed rsync and verified it
opkg install rsync
which rsync
rsync --help
Success !!!!!!

So now lets tackle the linksys...

On the linksys WRT1200ACv1 running 1.11.X:
This was a little different because i successfully installed rsync YET it would not execute, wierd !
So i had a read on openwrt forum and i executed
opkg info rsync
here i noticed the architecture listed was arm_cortex-a9 and NOT like ALL the other packages i checked in /usr/lib/opkg/status which had arm_cortex-a9_vfpv3

So i must have messed up ! Not surprising as i wasnt aware of this to start with.

Removed rsync with - opkg remove rsync
Removed cached contents in /tmp/opkg-lists
Another update of /etc/opkg.conf
>
src/gz openwrt_18.06.1_base http://downloads.openwrt.org/releases/1 ... vfpv3/base
src/gz openwrt_18.06.1_packages http://downloads.openwrt.org/releases/1 ... 3/packages
src/gz openwrt_18.06.1_routing http://downloads.openwrt.org/releases/1 ... v3/routing
src/gz openwrt_18.06.1_telephony http://downloads.openwrt.org/releases/1 ... /telephony

src/gz lantis http://lantisproject.com/gargoyle_mvebu/default

dest root /
dest ram /tmp
dest plugin_root /plugin_root
lists_dir ext /var/opkg-lists
option overlay_root /overlay
<
and updated with
opkg update
I rechecked file contents in /tmp/opkg-lists that all was in fact downloaded.

All looked good so i installed rsync and verified it
opkg install rsync
which rsync
rsync --help
Success !!!!!!
Last edited by foxyboy on Tue Sep 11, 2018 5:36 am, edited 2 times in total.
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Installing openwrt packages on 1.10 ?

Post by Lantis »

The architecture one is an easy mistake to make. Glad you got it sorted.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply