WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] piCore-11: Problems with tce-load  (Read 11274 times)

Offline Richard MQ

  • Newbie
  • *
  • Posts: 15
[SOLVED] piCore-11: Problems with tce-load
« on: March 09, 2020, 05:48:41 PM »
Hi - first post here though I've been using TinyCore on-and-off since the days of DSL.
Currently looking for a lightweight and headless OS for a Raspberry-Pi 3, piCore11.0 beta 1 seems a good start.
But I can't get tce-load to work:
Code: (bash) [Select]
tc@box:/mnt/mmcblk0p2/tce$ tce-load -wi file
Downloading: file.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: file.tcz.md5.txt: No such file or directory
Error on file.tcz
tc@box:/mnt/mmcbl

Also tried setting /opt/localmirrors to http://repo.tinycorelinux.net/11.x/armv7l/tcz but makes no difference

I'm sure I am missing something, any pointers much appreciated
Thanks
Richard




« Last Edit: March 11, 2020, 04:29:20 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: piCore-11: Problems with tce-load
« Reply #1 on: March 09, 2020, 08:38:33 PM »
Hi Richard MQ
Welcome to the forum. According to these links:
http://tinycorelinux.net/11.x/armv6/tcz/
http://tinycorelinux.net/11.x/armv7/tcz/
http://tinycorelinux.net/11.x/armv7l/tcz/
file.tcz  exists in all 3 repositories.

... Also tried setting /opt/localmirrors to http://repo.tinycorelinux.net/11.x/armv7l/tcz but makes no difference ...
I don't have a Raspberry Pi, but my understanding is that bmarkus made it a point to make PiCore look as much like Tinycore as possible.
There is an  /opt/tcemirror  file and it should contain:
Code: [Select]
http://repo.tinycorelinux.net/It tells the package manager which site to download from . The package manager handles filling in the rest of the URL.

Offline Richard MQ

  • Newbie
  • *
  • Posts: 15
Re: piCore-11: Problems with tce-load
« Reply #2 on: March 10, 2020, 03:44:12 AM »
Thanks Rich
Yes, file.tcz certainly exists, and I can see it if I use a browser on another machine to look at the repo.

As this is is piCore I don't have a graphical desktop so no AppBrowser available, instead I am using tce-load.
But tce-load is giving me a 404 when it tries to download this extension, or any other (same issue with "visudo" which I could certainly do with...)

I suspect I have not set the tce-load environment properly (equivalent to the mirror setup with AppBrowser) but I can't find any documentation on it?
Cheers
Richard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: piCore-11: Problems with tce-load
« Reply #3 on: March 10, 2020, 05:29:00 AM »
I don't see a problem on the server side - as a temporary fix, you can download with wget.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: piCore-11: Problems with tce-load
« Reply #4 on: March 10, 2020, 10:59:46 AM »
Hi Richard MQ
... As this is is piCore I don't have a graphical desktop so no AppBrowser available, instead I am using tce-load. ...
AppBrowser  also uses  tce-load.

What do these commands return:
Code: [Select]
cat /opt/tcemirror
version
uname -r

Offline Richard MQ

  • Newbie
  • *
  • Posts: 15
Re: piCore-11: Problems with tce-load
« Reply #5 on: March 10, 2020, 05:16:34 PM »
Hi again Rich
Before and after a re-boot:
Code: (bash) [Select]
tc@box:~$ cat /opt/tcemirror
http://repo.tinycorelinux.net/11.x/armv7l/tcz/
tc@box:~$ version
11.0beta1a
tc@box:~$ uname -r
4.19.81-piCore-v7
tc@box:~$tce-load -wi aterm
Downloading: aterm.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: aterm.tcz.md5.txt: No such file or directory
Error on aterm.tcz
tc@box:~$ wget http://repo.tinycorelinux.net/11.x/armv7l/tcz/aterm.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
aterm.tcz            100% |*************************************************************************| 65536   0:00:00 ETA
tc@box:~$

This is baffling me!
Thanks again for looking at this...
R.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: piCore-11: Problems with tce-load
« Reply #6 on: March 10, 2020, 07:57:05 PM »
Hi Richard MQ
Code: (bash) [Select]
tc@box:~$ cat /opt/tcemirror
http://repo.tinycorelinux.net/11.x/armv7l/tcz/
 ----- SNIP -----
That's wrong. Try this:
Code: [Select]
rm /opt/localmirrors
echo "http://repo.tinycorelinux.net/" > /opt/tcemirror

Now try using  tce-load  to get something else.

Offline Richard MQ

  • Newbie
  • *
  • Posts: 15
Re: piCore-11: Problems with tce-load
« Reply #7 on: March 11, 2020, 02:57:38 PM »
Wonderful - seems to work now as expected.

I am still confused as to why it didn't work out of the box though.

Many thanks
Richard

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: [SOLVED] piCore-11: Problems with tce-load
« Reply #8 on: March 11, 2020, 04:30:16 PM »
Hi Richard MQ
You are welcome. Thank you for confirming it worked. Marking the original post as solved.

Offline bricolodu13

  • Newbie
  • *
  • Posts: 18
Re: [SOLVED] piCore-11: Problems with tce-load
« Reply #9 on: March 23, 2020, 09:58:23 AM »
Hello,

I have just installed tinycore from piCore-11.0beta1a.zip
I can ssh to it.
Version: 11.0beta1a / uname-r: 4.19.81-piCore-v7


However, I can't install any other packages than those that are in the http://tinycorelinux.net/11.x/armv7/tcz/
I would like to install nano, aplay, wifi and a few other packages

It looks like those packages are in the http://repo.tinycorelinux.net/9.x/armv7/tcz/
I have tried to force that repo with echo "http://repo.tinycorelinux.net/9.x/armv7/tcz/" > /opt/tcemirror
no way !

Please, tell me what am I missing ?

Jean

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: [SOLVED] piCore-11: Problems with tce-load
« Reply #10 on: March 23, 2020, 10:24:22 AM »
Hi bricolodu13
... I have tried to force that repo with echo "http://repo.tinycorelinux.net/9.x/armv7/tcz/" > /opt/tcemirror
no way ! ...
No way indeed. The tce-load script will only go to the repository that matches the version and architecture you are running. The only
thing that should be in  /opt/tcemirror  is the base URL. The tce-load script reads that and appends the version and architecture itself.

If you want to try extensions from other repositories, you will need to fetch some other way. Be aware, any extensions (or dependencies)
that contain a kernel version number will not be compatible.

You can use  wget  like this:
Code: [Select]
wget http://repo.tinycorelinux.net/9.x/armv7/tcz/nano.tcz
You can place the URL in the address bar of your browser like this:
http://repo.tinycorelinux.net/9.x/armv7/tcz/nano.tcz

Those 2 methods require you to resolve dependencies yourself, and you must also download  .dep  files.


Use the script posted here:
http://forum.tinycorelinux.net/index.php/topic,23034.0.html
It will resolve and download depndencies. It will also fetch  .dep  and  .md5.txt  files.

Offline bricolodu13

  • Newbie
  • *
  • Posts: 18
Re: [SOLVED] piCore-11: Problems with tce-load
« Reply #11 on: March 23, 2020, 12:00:05 PM »
Hello Rich,

Thank you for your fast reply.
However, there is another bug...

I did as per your example (well, I suppose)
  • I downloaded your script
  • I made it executable
  • I created a dowload directory
  • I moved the script to that directory
  • I executed it
BUT got an error...
Code: [Select]
tc@box:~/downloads$ ls
FetchExt.sh
tc@box:~/downloads$ ./FetchExt.sh nano
-sh: ./FetchExt.sh: not found
tc@box:~/downloads$
:-[

    [EDIT]: Changed italic text to code tags.  Rich
« Last Edit: March 23, 2020, 12:11:49 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: [SOLVED] piCore-11: Problems with tce-load
« Reply #12 on: March 23, 2020, 12:18:16 PM »
Hi bricolodu13
I don't know why you would get that response if the file is actually there and the filename was typed correctly. It's the same response
you would get if you tried to execute a non-existent file:
Code: [Select]
tc@E310:~/info$ ./xyzzy
sh: ./xyzzy: not found
tc@E310:~/info$

Offline bricolodu13

  • Newbie
  • *
  • Posts: 18
Re: [SOLVED] piCore-11: Problems with tce-load
« Reply #13 on: March 23, 2020, 12:21:25 PM »
You are right and that's why I don't understand why it doesn't work ... :'(

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: [SOLVED] piCore-11: Problems with tce-load
« Reply #14 on: March 23, 2020, 12:31:01 PM »
Hi bricolodu13
You said you are doing this through SSH. Maybe try logging out and back in again?