Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Errors compiling printer driver

  1. #11
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Errors compiling printer driver

    I hate bumping threads, but I really need to get this working.

    Can anyone advise on the issues with cups libraries not intalling? (I've put the error below)

    Code:
    gavin@elbow:~$ sudo apt-get install libcups2-dev
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies.
      libcups2-dev: Depends: libgnutls-dev but it is not going to be installed
    E: Broken packages
    If I try again adding libgnutls-dev to the apt-get it comes back with this which is what I can't understand how to resolve:

    Code:
    gavin@elbow:~$ sudo apt-get install libcups2-dev libgnutls-dev
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies.
      libgnutls-dev: Depends: libgnutls26 (= 2.4.2-6ubuntu0.1) but 2.4.2-6+lenny1 is to be installed
    E: Broken packages
    Last edited by yknivag; September 22nd, 2009 at 05:28 PM.

  2. #12
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Errors compiling printer driver

    Quote Originally Posted by yknivag View Post
    Code:
    The following packages have unmet dependencies.
      libgnutls-dev: Depends: libgnutls26 (= 2.4.2-6ubuntu0.1) but 2.4.2-6+lenny1 is to be installed
    Lenny? That's odd. What are the contents of /etc/apt/sources.list?

  3. #13
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Errors compiling printer driver

    Hi snova, thanks for your input. I was a bit concerned about the lenny bit too (isn't that native Debian from which Ubuntu is built?)

    I've attached my sources.list as a tar.gz

    There is a line in there from Debian which I added for something specific (can't remember what now) but I can't see how that has caused the issue as the library concerned seems to be a dependency for the whole of gnome (or at least that's what apt tries to remove if I try and remove the library.

    Any ideas?

    I guess I really should reinstall (hasn't really been the same since I upgraded from Hardy to Jaunty) but am waiting for Koala for that.
    Attached Files Attached Files
    Last edited by yknivag; September 23rd, 2009 at 05:57 PM.

  4. #14
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Errors compiling printer driver

    Quote Originally Posted by yknivag View Post
    Hi snova, thanks for your input. I was a bit concerned about the lenny bit too (isn't that native Debian from which Ubuntu is built?)
    I think so, but mixing the two generally doesn't end well.

    There is a line in there from Debian which I added for something specific (can't remember what now) but I can't see how that has caused the issue as the library concerned seems to be a dependency for the whole of gnome (or at least that's what apt tries to remove if I try and remove the library.

    Any ideas?
    As long as it was only used for that one package I can't see it messing anything up, but what concerns me now is that it still wants to install stuff from Lenny. The line in question is commented out, but if you haven't told apt-get to update since you did so, it will still look there.

    Well, try this just in case:

    Code:
    sudo apt-get update
    sudo apt-get install libcups2-dev

  5. #15
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Errors compiling printer driver

    Hi snova,

    I've tried that before, but did again and came up with the same result:

    Code:
    The following packages have unmet dependencies.
      libgnutls-dev: Depends: libgnutls26 (= 2.4.2-6ubuntu0.1) but 2.4.2-6+lenny1 is to be installed
    E: Broken packages
    I commented out the debian specific repository ages ago (after I'd installed whatever it was that was dependant on it) but something seems to be stopping apt from either ovewriting libgnutls26 wih the Ubuntu version or accepting that it is the same file...

    My plan was to run:

    Code:
    sudo apt-get remove libgnutls26 && sudo apt-get install libcups2-dev
    but when doing that apt tries to remove gnome!

  6. #16
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Errors compiling printer driver

    I hate bumping my own threads, but before I reinstall the entire OS does anyone know anyway I can replace the lenny version of libgnutls26 with the Ubuntu one without apt removing and re-installing all of Gnome?

  7. #17
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Errors compiling printer driver

    I guess that's a no then. Rebuild time it is...

  8. #18
    Join Date
    Sep 2007
    Beans
    1

    Re: Errors compiling printer driver

    Hi!

    I could compile rastertocbm1k.c (in 9.04, 64 bits) installing the package libcupsimage2-dev, which has raster.h (that was the only header I had not, the other headers needed I suppose that came with libcups2-dev, that I had already installed).

    http://packages.ubuntu.com/jaunty/libcupsimage2-dev

    Afterwards, the original gcc command line that was inside the .c worked like a charm:
    gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertocbm1k rastertocbm1k.c -lcupsimage -lcups

    What I haven't done is to make that works, as I don't have the real printer here, it was a friend of mine who asked me to try to do something with that rpm-distro lover .c code.

    Hopefully this helps!

  9. #19
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Errors compiling printer driver

    Hi kadejo, thanks for your reply. I manged to get it to work after re-installing. I should have come back really and marked the thread as solved.

    My problem was something I had previously installed had used a native Debian library rather than the Ubuntu equivalent.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •