[Q] How to install additonal debian squeeze packages?

Dear developers.

I would like to install additional debian squeeze packages.

Could you please tell me how to add debian squeeze repository?

What parameters should I modify for that?
It’s not exists in package.vyos.net repository.

VYOS_DEBIAN_MIRROR, VYOS_DEBIAN_BOOTSTRAP_MIRROR?

I don’t want to care about dependency.
so I don’t put *.deb packages in pkgs dir.

Thank you for your advice.

Sincerely.

Hiroyuki Sato.

It is explained in the FAQ

Specifically: How do I install debian packages

I think he want to add packages into his customized iso with build-iso.

he wrote:
I would like to install additional debian squeeze packages.
Could you please tell me how to add debian squeeze repository?

I didn’t get that information from his words, sorry

Does this help ?

http://vyos.net/wiki/Modifying_the_build

Hello fromport and higebu.

Questions

  1. Could you tell me how to add packages which does not exist in
    http://packages.vyos.net/debian/helium/ repository

or

2, Could you please full-sync debian squeeze mirror on packages.vyos.net?

Problem: Custom build-iso

I would like to install the following packages.
And I appended the following lines into vyatta-extra.list
(livecd/config.vyatta/chroot_local-packageslists)

infiniband-diags
ibutils
ibverbs-utils
perftest
libmlx4-1
libmthca1
mstflint
rdmacm-utils
opensm  

And execute ``make’’ command. But I got the following error.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
P: Configuring file /etc/kernel-img.conf
P: Begin executing preseed...
P: Begin executing local preseeds...
P: Begin installing tasks...
P: Begin queueing installation of packages lists...
P: Begin queueing installation of local packages lists...
P: Begin queueing installation of packages...
P: Begin queueing installation of local packages...
P: Begin installing packages...
Couldn't find any package whose name or description matched "infiniband-diags"
Couldn't find any package whose name or description matched "ibutils"
Couldn't find any package whose name or description matched "ibverbs-utils"
Couldn't find any package whose name or description matched "perftest"
Couldn't find any package whose name or description matched "libmlx4-1"
Couldn't find any package whose name or description matched "libmthca1"
Couldn't find any package whose name or description matched "mstflint"
Couldn't find any package whose name or description matched "rdmacm-utils"
Couldn't find any package whose name or description matched "opensm"
Couldn't find any package whose name or description matched "infiniband-diags"
Couldn't find any package whose name or description matched "ibutils"
Couldn't find any package whose name or description matched "ibverbs-utils"
Couldn't find any package whose name or description matched "perftest"
Couldn't find any package whose name or description matched "libmlx4-1"
Couldn't find any package whose name or description matched "libmthca1"
Couldn't find any package whose name or description matched "mstflint"
Couldn't find any package whose name or description matched "rdmacm-utils"
Couldn't find any package whose name or description matched "opensm"

I can install thorse packages on build-env(Debian 6.0.9)

    apt-get install -y infiniband-diags ibutils ibverbs-utils perftest \
      libmlx4-1 libmthca1 mstflint rdmacm-utils opensm
  
Maybe, this is because those packages does not mirror on 
http://packages.vyos.net/debian/helium/

Sincerely.

For now you should put those packages to pkgs/ and add them to the packagelists (build-iso/livecd/config.vyatta/chroot_local-packageslists).
I’m not sure there’s a way to enforce repo priorities, and our repo diverged from debian substantially.

Hello dmbaturin, fromport, and higebu

Thank you for your advice.

Hiroyuki Sato.

Hello all:

I am trying to install build-essential package on the latest VyOS. I am not a debian expert by any means. My goal is to install gcc/make etc. and compile PERL modules.

The end goal is to have a API endpoint running on VyOS for remote management and provisioning. I am planning to deploy & manage high amounts on VyOS on couple of hypervisors.

Why PERL? Cause I know it pretty well and also there are lot of PERL scripts on VyOS appliance already I can piggy back on. It will be a very purpose specific built API (to manage interfaces, tunnel configurations). I am planning to use Mojolicious framework.

Here is what happens when I try to install build-essential.

First I setup the repositories per Wiki

set system package repository squeeze components ‘main contrib non-free’
set system package repository squeeze distribution ‘squeeze’
set system package repository squeeze url ‘Index of /debian/
set system package repository squeeze-backports components main
set system package repository squeeze-backports distribution squeeze-backports
set system package repository squeeze-backports url ‘http://backports.debian.org/debian-backports

update the repository

apt-get update

now try to install build-essential

apt-get -y install build-essential

The following packages have unmet dependencies:
build-essential : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.4.3) but it is not going to be installed
E: Broken packages

I did some research and I think this has to do with the fact that some packages were installed from wheezy (Debian 7.x)

Only fix I found was to manually edit sources.list

If I change, squeeze to wheezy, apt-get finds the packages with a warning
deb Index of /debian/ wheezy main contrib non-free # squeeze #
deb http://backports.debian.org/debian-backports squeeze-backports main # squeeze-backports #

I get the big warning

certain libraries, such as libpam, libc, and libssl, x
x are upgraded. Since these restarts may cause interruptions of service for the system, you will normally be prompted on each x
x upgrade for the list of services you wish to restart. You can choose this option to avoid being prompted; instead, all x
x necessary restarts will be done for you automatically so you can avoid being asked questions on each library upgrade. x
x x
x Restart services during package upgrades without asking? x
x x
x x

Restarting services possibly affected by the upgrade:
ssh: restarting…done.
cron: restarting…done.
atd: restarting…done.

Services restarted successfully.

I am guessing these services shouldn’t affect the functionality of VyOS. I experimented the latest VC Edition of Vyatta which is based on 6.0.7 and I didn’t have any problems with installing Debian packages.

I have a feeling that once VyOS is ported to Debian Wheezy (7.x) this problem will go away, but I was wondering if there is a better workaround in the meantime.

Can you think of a better way to pre-install what I want to install? I am planning to clone VMs with blanket configuration where a controller will connect to VyOS over API and configure the rest (I am aware of the interface ordering issue which is easy to work with)

Thanks in advance

Luke