cannot install locales in Debian 7 due to unmet dependencies

So instead of including the wheezy-backport in my sources.list I had the bright idea of adding jessie directly. Realising my mistake I cut out of and apt-get update/upgrade midway through and then reset sources.list to wheezy and ran through this list of commands. But when I try to sudo apt-get install locales this happens:

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:
 base-files : PreDepends: awk
 erlang-crypto : Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
 libc6 : Depends: libgcc1 but it is not going to be installed
         Recommends: libc6-i686 but it is not going to be installed
         Breaks: locales (< 2.19)
 libncurses5 : PreDepends: multiarch-support but it is not going to be installed
               Recommends: libgpm2 but it is not going to be installed
 libtinfo5 : PreDepends: multiarch-support but it is not going to be installed
 locales : Depends: glibc-2.13-1
           Depends: debconf (>= 0.5) but it is not going to be installed or
 procps : Depends: libncursesw5 (>= 5.6+20070908) but it is not going to be installed
          Depends: libprocps0 (>= 1:3.3.2-1) but it is not going to be installed
          Depends: initscripts but it is not going to be installed
          Recommends: psmisc but it is not going to be installed
 zlib1g : PreDepends: multiarch-support but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

How do I solve these dependencies?

In event sourcing, is it ok to introduce a dependency in my message class?

Following Martin Fowler’s explanation on event sourcing, I have a message class that looks something like this:

    Process(Ship ship) {}

However, in my case, I need to talk to another component in the Process method. More specific, I need to access a repository to get some basic data. Is it ok to add this repository to the method, i.e.:

    Process(Ship ship, IBasicDataRepository repo) {}

I could put it in the constructor of my message too, of course. However, I can’t pass in the basic data, because the repo will be called multiple times with different parameters, depending on what’s in the ´ship´ object.

So is it ok to introduce external dependencies in the event/message class or is there a better way?

How to find the packages that depend on a certain package in apt?

How can I get, not the dependencies of a package, but the packages that are depending on a certain package?

I’m on debian 6.0 Squeeze-LTS (the first-time extension to squeeze for long term support!) for my web server, and it reports that support has ended for a certain package:

Unfortunately, it has been necessary to limit security support for some

The following packages found on this system are affected by this:

* Source:libplrpc-perl, ended on 2014-05-31 at version 0.2020-2
  Details: Not supported in squeeze LTS
 Affected binary package:
 - libplrpc-perl (installed version: 0.2020-2)

I don’t really want to try to uninstall that binary package without seeing what depends on it, and it’s description describes stuff that I’ve never heard of before:

libplrpc-perl: Perl extensions for writing PlRPC servers and clients

So I’d be fine with just removing the package if possible, but want to determine the things that depend on it before doing so.

How to handle passing multiple dependencies in a module hierarchy

So I have my application consisting of a number of modules in a module hierarchy. Furthermore let’s also assume each module is a class and we have a tree of classes where the classes at the top are using the classes below, to make it more simple.

A class A1 at the very bottom may depend on some input parameters. class B1 is above class A1 and is creating and using instances of class A1. Therefore it has to pass the dependencies needed by the instances of class A1 into them. If it can’t create these dependencies from some operations, class B1 now has it’s on dependencies but additionally the dependencies of class A1.
The higher we go the more these dependencies will add up so that the toplevel class will need to know all the dependencies unless they can be created at a lower level.

This means if class A1 my program is dependent on the current temperature, I have to pass this to the toplevel class which then passes it to the next class and so on until it arrives at the very bottom in class A1. If I do that, I make the state explicit but it also means that I have methods or classes that take many parameters.


What if the temperature is may change while the application is running – is there a way to avoid passing it all the way down the class tree without giving away explicit state? How would you guys handle this?


What if the temperature is a constant that will never change while the program is running? Does this give us more options to avoid passing it always as an argument? I could see someone using a global configuration (singleton) but it will make it harder to test right?

I could also pass not the temperature itself but a configuration object. This would mean class B1 does not receive for example a temperature and a airpressure parameter but gets a configuration object passes it to class B1 and class B2 where class B1 only needs the airpressure and class B2 only needs the temperature. Is that a good approach? What are the pros/cons?

Converted ERD into Dependency Diagram 1NF, 3NF

enter image description here

Thats the ERD.

I’m studying for an upcoming test and having trouble getting my head around converting thes ERDs into dependency diagrams. This is from a previous exam that the Lecturer told us to study just btw so he said it will be pretty similar to this.

We have to -

-Convert the ERD into a dependency diagram.
-And then, conver that diagram into a 3NF model, with no transitive or partial dependices.

Any help would be much appreciated as I’m struggling to get my head around it and need to pass this test :/

Thanks in advance!

Bundling of dependencies with shell scripts

Shell scripts often have to depend on tools that may not be installed on the users’ computer. To circumvent this problem, many scripts have multiple fallbacks.

IMO doing such things only leads to complex code, and it is not uncommon to find a large chunk of the script just devoted to compatibility reasons.

Why couldn’t be the dependencies just be included in the script? The script could include these programs (as an appended compressed section, like makeself does), and simply use them while running?

To clarify, of course this does not apply to things like wget and curl; the code for each would be minimal in that case. I’m talking about scripts that involve GUIs, and there’s a lot of code to support such programs (zenity/yad/xdialog etc.), which involve wildly different syntaxes.

Is there a reason why the above isn’t done?

Is there any unnecessary packages (like xserver-xorg-video-*) that I can safely uninstall?

There are some packages that are just sitting around on the system doing pretty much nothing – like xserver-xorg-video-”insert graphics card that you don’t use”. I mean, I use a radeon graphics card, wtf is voodoo’s display drivers doing on my computer?

I build my Debian from scratch, I just installed the base system (without even the “standard system utilities” task), and built it from the ground up. In the process, I installed packages like xfce4 (which pulled with it a staggering amount of 400 packages with it), which brought along the above mentioned “packages that I will never use”.

My question is this: what can I uninstall while still keeping a decent looking xfce4 environment (and a decent looking aptitude menu that is not trying to kill me)?

Bonus: Will I totally screw up my system if I uninstall orage (the xfce4 calendar)? Aptitude is not happy about that, and wants to uninstall xfce4 along with orage. I’m pretty sure removing orage won’t change that much, but aptitude don’t agree with me.

Install CUDA 6.0 on Debian 7 via package manager

I am following the official installation guide for Ubuntu. I first installed the cuda-repo package (cuda-repo-ubuntu1304_6.0-37_amd64.deb), which adds the NVIDIA repository to apt. Then it gives when installing that:

$ uname -a
Linux debian 3.14-1-amd64 #1 SMP Debian 3.14.10-1 (2014-07-07) x86_64 GNU/Linux

$ dpkg -i cuda-repo-ubuntu1304_6.0-37_amd64.deb
$ aptitude update
$ aptitude install cuda

The following packages have unmet dependencies:
 nvidia-settings : Depends: screen-resolution-extra (>= 0.12) which is a virtual package.
 nvidia-331 : Depends: xorg-video-abi-11 which is a virtual package. or
                       xorg-video-abi-12 which is a virtual package. or
                       xorg-video-abi-13 which is a virtual package. or
                       xorg-video-abi-14 which is a virtual package.

I cannot find any package named screen-resolution-extra via aptitude search. And there is only a xorg-video-abi-15 in the repository which cannot be installed.

How can I solve this if I want to install CUDA via package manager?

Functional Dependencies Query

I am having a confusion in Functional Dependencies

I have a relation R(A,B,C,D,E,F)
Where {A, B} is the key

And the FD set I have is {A->FC, C->D, B->E}

What Normal Form is it in?

Basically I want easy explanation. For a relation to be in 2NF, it must not have partial dependency, so as B is determining E is it not in 2NF, which means it is in 1NF?

And if it is in 1NF?
Would the relations become {A,B,C,D}, {B,E} and {A,C,F}?

Mac Firebreath plugin port to Linux (dependencies)

I have Firebreath plugin for Mac that I need to port to Linux.

I am trying to find the replacement dependencies for the Linux version.

Here is the dependencies I have in my cmake for Mac:

find_library(COCOA_F Cocoa) 
find_library(FOUNDATION_F Foundation) 
find_library(APPKIT_F AppKit) 
find_library(COREDATA_F CoreData) 
find_library(AGL_F AGL) 
find_library(CARBON_F Carbon) 
find_library(AUDIOTOOLBOX_F AudioToolbox) 
find_library(COREAUDIO_F CoreAudio) 
find_library(AUDIOUNIT_F AudioUnit) 
find_library(QUARTZCORE_F QuartzCore) 
find_library(QUICKTIME_F QuickTime) 
find_library(OPENGL_F OpenGL) 
find_library(QTKIT_F QTKit)

So far I’ve found:

OpenGL       => freeglut3 ?
Cocoa        => GLFW ?

Any suggestions for the other dependencies?

Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam