Tiny Core Linux
dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: Santos on December 03, 2023, 02:31:18 PM
-
Hello
I am working with dCore Stretch (x86 and x64, got latest iso for both) and whenever I try to import an extension, like:
sce-import emacs
I get an error saying that the Debian repo does not exist. I tried to check if I could update the repo address (maybe is now archived) but could not do it -didn't find any file to edit-.
Is that the right approach or what should I do to get sce-import to work?
Edit: btw, I do have access to the internet.
-
I think the url moved to debian archive, or old-releases. Basically it is different.
Then again, i hope we'll get some new dCore images someday.
-
Stretch went into the archive last Spring.
https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html (https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html)
-
Thank you, guys.
How do I update the url so it can point to the right place?
I'm clueless on what file to edit.
-
See this link (https://unix.stackexchange.com/questions/744401/security-repo-for-debian-stretch-not-working-anymore) at Stack Exchange for instructions on a "normal" Stretch install being updated (modifying the repo configs)
which contain the URLs you'll need for dCore, however, I'm sorry to say I've never installed dCore for myself so I don't
have the other piece to the puzzle on where sce-import gathers its information. I'd GUESS in /etc/sysconfig or /opt,
but I cannot say for certain. Hope this helps at least a little.
-
Hello,
I was able to add an extra repo based on the information on the dCore wiki:
http://wiki.tinycorelinux.net/doku.php?id=dcore:handling_extensions
In the 'Additional Repositories' section.
Everything seems to work. After adding the unique URL to a text file in /opt/debextra/ directory and running sce-import there is a debinx file generated, which I assume is a confirmation about the sce-import command taking the repo in.
However, I got the same error about the repo not available for the FTP Debian URL. This makes sce-import to error out and refuse to install anything.
tc@box:~$ cd /opt/debextra/
tc@box:/opt/debextra$ ls
tc@box:/opt/debextra$ vi archive
tc@box:/opt/debextra$ sce-import screen
* Using nice level 19.
* Using the -u option.
* DEBINX sync based on debian stretch.
* Debian index sync: debian_stretch_main_amd64_Packages
* Debian security index sync: debian_stretch_security_amd64_Packages
* Connecting to: http://repo.tinycorelinux.net/dCore/x86_64/
debian_stretch_security_amd64_Packages
* Using repo: http://archive.debian.org/debian stretch main
Warning: The following repository is not available:
debian stretch http://ftp.us.debian.org/debian
Warning: Error updating DEBINX files, exiting..
tc@box:/opt/debextra$
tc@box:/opt/debextra$
tc@box:/opt/debextra$
-
SOLVED! :D
It took me time to resolve it, it was exactly what I thought it was... just changing an URL in a file.
/usr/bin/debGetEnv
Edit the file and change every instance of:
http://ftp.us.debian.org/debian
To
http://archive.debian.org/debian
Not even the wiki mentioned this -or I missed it-. So I had to use brute force and grep-search every file and print its location once the pattern was found even used a LLM to help me with the command line.
Thank you for your assistance, CentralWare.
Hope more people can find this useful.
-
@Santos: Sorry for the late reply, I've been under the weather for a bit and a break from CyberSpace was long overdue.
No, history (wiki) doesn't always record the when and where. In fact, I had to do something very similar not but a month or two ago with a development device which had an experimental version of Debian Buster Arm installed on it and that, too, was a dramatic hunt to find which file(s) were needing the same archive.debian.org link implemented.
The "change" from FTP to ARCHIVE is actually an easy "sed" instruction once you know which files to change, but think of it this way... you're now THAT much more familiar with your system than you were a couple weeks ago! :) On a plus note, now that you're using archive, it's very unlikely to ever go anywhere else down the road!
-
Hi @CentralWare,
I know having a break from all internet and tech stuff is necessary to keep the interest alive. Trying to do that as well.
Debian based systems luckily are standard enough that there is always tutorials or references, albeit not verbatim but it can point us in the right direction if we search carefully. Good you sorted it out.
I kept thinking about this issue so much that brute force is the only thing I decided to do, an elegant sed solution will make it fast an efficient but I am always learning and un-learning. So a simple "brute" vi edit was well within my reach instead of just visiting a refresher tutorial for sed.
But for sure, is something I still have pending sed, awk and sh programming in general.
Anyways, as you said. I'm now more familiar with the system I use and I love this. Yes, 'archive' may not be an issue anymore but with the Debian PPA system... I do not know, maybe keys or certificates issues may arise in the future. It had happened before, but that is where the fun is!