WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: update-alternatives mising /var/lib/dpkg/alternatives  (Read 2353 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
update-alternatives mising /var/lib/dpkg/alternatives
« on: February 25, 2015, 08:14:06 AM »
Hi
I've tried to install vim-gtk and the postinst script uses update-alternatives to create the gvim executable, but update-alternatives needs the directory /var/lib/dpkg/alternatives, so I created it and the gvim file is created.
I placed
mkdir /var/lib/dpkg/alternatives
in /opt/bootlocal.sh
dCore user

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: update-alternatives mising /var/lib/dpkg/alternatives
« Reply #1 on: February 28, 2015, 04:24:26 AM »
Hi Jason & the others
actually  it doesn't work, I've also tried to put var/lib/dpkg/alternatives in filetool.lst, but nothing, the gvim bimary is not created, but if I put
Code: [Select]
/usr/local/tce.installed/vim-gtkin bootlocal it works.

PS. update-aletnatives already exists since it's in  my base sce which is installed before vim-gtk.sce
dCore user

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: update-alternatives mising /var/lib/dpkg/alternatives
« Reply #2 on: February 28, 2015, 04:42:49 AM »
Hi again
Now I understand, both bootlocal.sh & mydata are processed after  tce-setup so I propose to include /var/lib/dpkg/alternatives in the initrd.

Good weekend to you all
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: update-alternatives mising /var/lib/dpkg/alternatives
« Reply #3 on: March 01, 2015, 06:08:45 PM »
Thanks, I will look into it.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: update-alternatives mising /var/lib/dpkg/alternatives
« Reply #4 on: March 01, 2015, 06:36:29 PM »
Good find, simply creating the /var/lib/dpkg/alternatives directory lets the update-alternatives work.  This will help make a lot of packages get set up right.  I will add the dir and upload to release candidates now.