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