apt-get install libqt4-dev Reading package lists... Done Building dependency tree... Done You might want to run âapt-get -f installâ to correct these: The following packages have unmet dependencies. libglu1-mesa-dev: Depends: libgl1-mesa-dev but it is not going to be installedor libgl-dev libqt4-dev: Depends: xlibmesa-gl-dev but it is not going to be installedor libgl-dev E: Unmet dependencies. Try âapt-get -f installâ with no packages (or specify a solution). jindal:/etc/apt# apt-get -f install Reading package lists... Done Building dependency tree... Done Correcting dependencies...Done The following packages will be REMOVED libglu1-mesa-dev 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0B of archives. After unpacking 803kB disk space will be freed. Do you want to continue [Y/n]? and i dont wanna remove any as i suppose opengl would stop working apt-get -f install Reading package lists... Done Building dependency tree... Done Correcting dependencies...Done The following packages will be REMOVED libglu1-mesa-dev 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0B of archives. After unpacking 803kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 133195 files and directories currently installed.) Removing libglu1-mesa-dev ... apt-get install libqt4-dev Reading package lists... Done Building dependency tree... 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. Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed. The following information may help to resolve the situation: The following packages have unmet dependencies. libqt4-dev: Depends: libglu1-xorg-dev but it is not going to be installedor libglu1-mesa-dev but it is not going to be installedor libglu-dev E: Broken packages