add packagesource

5 replies [Last post]
Gottfried
Offline
Joined: 02/22/2022

Hi,

after installing trisquel offline with my usb-stick
I tried to install additional packages with a script
copied this script to the usb-stick
and on a online laptop downloaded those packages.
I tried to install them, but all failed because there were dependencies missing.

I downloaded all the dependencies with another script but it it is impossible to install them.
I tried several times.
Even opening those packages and right click on the mouse there was a possibility
with qApt-packageinstaller to install,
it even said the package is installed
but in Synaptic they were not installed and
synaptic tells me always some packages are not installed.

I tried this several times and it failed.

One problem is that synaptic doesn´t take those packages from the usb-stick.
What can I do that synaptic takes those?

There is an option to add package sources,
but it doesn´t allow me to add the usb-stick.

What can I do?

thanks

Gottfried

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

What can I do that synaptic takes those?

Have you tried copying the .deb packages to /var/cache/apt/archives?

There is an option to add package sources

See https://trisquel.info/en/wiki/installing-packages-without-internet-connection#toc3

Nevertheless, since you are using a USB stick, I do not think it is what you are searching for. I believe you are searching for apt-offline, which is in Trisquel's repository, along with apt-offline-gui for a GUI.

Gottfried
Offline
Joined: 02/22/2022

Have you tried copying the .deb packages to /var/cache/apt/archives?

I copied it into this folder but what do I have to do then?

I downloaded apt-offline and apt-offline-Gui and installed it on the offline laptop.
But it seems so difficult to use it according to your proposed website.
So many steps to do....

thanks

Gottfried

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

I copied it into this folder but what do I have to do then?

Use APT, through the Synaptic Package Manager if you want.

But it seems so difficult to use it according to your proposed website.

I have not pointed you to a page explaining the use of apt-offline. Here is one: https://deepwiki.com/rickysarraf/apt-offline/1.2-quick-start-guide

It could certainly be simplified. The "Code Flow" or "What happens" internally are of no interest to the user. It would not be in a section of https://trisquel.info/en/wiki/installing-packages-without-internet-connection that you could write, after learning apt-offline's use.

Gottfried
Offline
Joined: 02/22/2022

I can´t send this email from the trisquel forum website.

Forbidden

You don't have permission to access this resource.

I tried to create a script of packages on my offline laptop
and downloaded the packages on my online laptop.

But unfortunately it didn´t include some dependencies.
Synaptic didn´t include all necessary dependencies.

So it was impossible to install
mc (midnight commander)
emacs,
gimp

I created a second script and included all dependencies
but after installing them on my offline laptop
it failed several times.
there were an other dependencies which were not shown up in synaptic.

I managed then after 4 attempts to install
mc
gimp
but emacs had other dependencies.

Additionally there are confusions.
After installing them on the offline laptop
it showed that they are installed.
But opening synaptic it shows that they are not installed.
I restarted the laptop several times in between in order to make sure it
shows the right situation
and then those installed packages are not installed.

So I would again have to search the dependencies for emacs and download them
and it will probably show again some dependencies which are necessary
and emacs can´t be installed.

The whole process needs many hours.
It goes on and on...

on the website
https://packages.trisquel.org/
there are only packages for aramo and nabia, but not for Ecne to download
where are those?

Thanks for your help.

To deal with apt-offline seems for me at the moment too difficult.
So much to do and so complicated.

the best would be to download from the repository only Trisquel 12 stuff,
in order not to have 2 TB, which I can´t download on my internet speed,
but it seems nobody knows the commands for it.

Malsasa
Offline
Joined: 12/01/2016

Hello,

On 13/07/26 21.06, gfp wrote:
> I can´t send this email from the trisquel forum website.
>
> Forbidden
>
> You don't have permission to access this resource.

I am sorry for not helping much. But, I can confirm that this email
reached me from trisquel-users mailing list. I missed so many Trisquel
forum discussions as the mails did not reach me for a very long time and
I believe there are more people experiencing the same.

> [...]
> I tried to create a script of packages on my offline laptop
> and downloaded the packages on my online laptop.
>
> But unfortunately it didn´t include some dependencies.
> Synaptic didn´t include all necessary dependencies.
>
> So it was impossible to install
> mc (midnight commander)
> emacs,
> gimp

As for your question, for offline downloading of a complete set
dependencies of a package, let's say GIMP, you can try this command on
the online Trisquel laptop:

Requirement: the version and architecture of both Trisquel systems on
both laptops must be exactly the same.

$ sudo apt-get install --yes --print-uris gimp |  cut --delimiter="'"
--field=2 | grep .deb

For Midnight Commander, that would be like this:

$ sudo apt-get install --yes --print-uris mc |  cut --delimiter="'"
--field=2 | grep .deb

For Emacs, that would be like this:

$ sudo apt-get install --yes --print-uris emacs |  cut --delimiter="'"
--field=2 | grep .deb

The output of each command line above would be a list of complete URLs
all ended with a .deb extension.

Save the output as a plain text accordingly, for example, gimp.txt,
mc.txt, and emacs.txt.

Then still at the same online Trisquel laptop, download all the URLs in
the gimp.txt into a folder named 'gimp'. You can use GNU wget
preinstalled on Trisquel for this purpose. Repeat this process for 'mc'
as well as 'emacs' folders too.

Now you have three folders containing full sets of DEB package
dependencies for each package ready to be installed on the offline
Trisquel laptop.

I hope this helps.

Best regards,

Malsasa