• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Major Ubuntu problem

konakona

Diamond Member
I should probably register at the Ubuntu forums and ask there, but I am lazy 😛

Spent like a whole day on installing / customizing ubuntu 6.10 (edgy) on the print server, and everything seemed to go well. Then I had to install Qt3 library for one my programming assignments and things went south from there. After spending a while on google to locate all the header files needed, I realized qconfig.h was still missing. So I tried to install a package called qt3lib-mt-dev or something along that line. That failed for some reason, and I was advised by synaptics to do apt-get install -f. I had a queazy fealing of doing something terribly wrong. It seemed to have uninstalled some of essential stuff, ubuntu-minimal off the top of my head.

From there on, I spent extra few hours trying to get my g++ back, but got rejected by synaptics. sudo apt-get gcc also resulted in some dependency related error and didnt work. Some googling revealed that people were having similar issues after updating cygwin. One guy on the ubuntu forums had nearly the same problem, but his case was left unsolved. Is anyone at AT forums feeling like helping a poor linux noob out? 😱
 
Originally posted by: xtknight
some dependency related error and didnt work.

Some error? You're going to paste the detailed command and error output if you expect someone to be able to help you, right? 🙂

yep, I was at the computer lab at the time of posting, getting ready to leave.
Now that I am home with the problem to deal with and someone's attention, more detailed posting is in order 🙂

I will put that up in a few minutes after a bathroom break 😉
 
howdy, back again.

First, there is no signs of g++ in /usr/bin. obviously, any attempt to 'make' results in g++ not found error.

sudo apt-get install gcc -> says gcc is already the newest version

synaptic reports the following are already installed:
gcc 4:4.1.1-6ubuntu3
gcc-3.3-base 1:3.3.6-13ubuntu2
gcc-4.1 4.1.1-13ubuntu5
gcc-4.1-base 4.1.1-13ubuntu5
libgcc1 1:4.1.1-13ubuntu5
libstdc++5 1:3.3.6-13ubuntu12
libstdc++6 4.1.1-13ubuntu5
lib3qt-mt 3:3.3.6-3ubuntu3

However, it would not allow me add
g++-4.1
Depends: libstdc++6-4.1-dev but it is not going to be installed

libstdc++6-4.1-dev:
Depends: g++-4.1 but it is not going to be installed
Depends: libc6-dev but it is not going to be installed

libqt3-mt-dev:
Depends: zlib1g-dev but it is not going to be installed
Depends: libjpeg62-dev but it is not going to be installed
Depends: libmng-dev but it is not going to be installed
Depends: libpng12-dev but it is not going to be installed or
libpng12-0-dev
Depends: libfontconfig1-dev but it is not going to be installed
Depends: libfreetype6-dev but it is not going to be installed
Depends: libxft-dev but it is not going to be installed
Depends: libcupsys2-dev but it is not going to be installed
Depends: libgl1-mesa-dev but it is not going to be installed or
libgl-dev
Depends: libglu1-mesa-dev but it is not going to be installed or
libglu-dev
Depends: libc6-dev but it is not going to be installed
Depends: libqt3-headers (=3:3.3.6-3ubuntu3) but 3:3.3.7-1ubuntu1 is to be installed
Recommends: libqt3-compat-headers but it is not going to be installed

Basically, i kept googling and trying different dependecies installed at no avail.
Some potentially related threads I came across:
http://www.ubuntuforums.org/archive/index.php/t-226190.html
http://ubuntuforums.org/archive/index.php/t-12431.html
http://ubuntuforums.org/showthread.php?t=292422&page=2

This guide says you could force version, but maybe that feature is taken out in the current version?
https://help.ubuntu.com/community/SynapticHowto

So I guess ubuntu is kinda um... you know 😛 on a serious note, the message I got was that the dev versions tend to lag behind the non-dev versions, and ubuntu would not allow installing older versions... oh well, I dont know if I wanna go about manually getting the repositories and keep track of them. I am very new to linux and lets just say I dont wanna mess up precarious yet functional state of the ubuntu installation.

I just want my g++ back and be maybe I could just look for those missing qt3 header files (I already got the most including qapplication.h, just was missing two of them), which prompted me to drag myself down into this mess in the first place 🙁
 
It seemed to have uninstalled some of essential stuff, ubuntu-minimal off the top of my head.

Reading what apt/aptitude is going to do before you ok it is usually a good idea. But ubuntu-minimal isn't critical, it's just a meta-package that depends on other packages.

the message I got was that the dev versions tend to lag behind the non-dev versions,

That's extremely unlikely since they're both built from the same source package.

Do you have any non-standard repos setup in your sources.list?
 
root@printserver:/home/taiyaki# sudo apt-get install libc6-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.

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:
libc6-dev: Depends: libc6 (= 2.4-1ubuntu12) but 2.5-0ubuntu2 is to be installed
E: Broken packages

That's extremely unlikely since they're both built from the same source package.
quoting from my second link
I have noticed this issue with several dev packages, try installing the libgtk2.0 dev package, for example. The dev packages are lagging the release packages by a version. This is driving me totally nuts. Is there a reason for this? ](*,)

Why are packages allowed to be released when the dev packages do not have a release canidate? They obviously have to have code, or you could not have built the stinking package to begin with. I am having to go and find packages in pool and do all kinds of crazy crap to get stuff to build.

Ubuntu is easy to install and nice to use, but I never had these issues with Debian, not even unstable.

I am ready to give up, this is not usable for development at all.
 
What distribution of Ubuntu are you running?

You probably installed a package from somewhere else. Did you download a 2.5 deb for libc6 from a tree other than Edgy?

There is no libc6 2.5-0ubuntu2 in the repositories.... But don't dare remove libc6. That's one of those packages you just can't remove if you want to use anything at all.

Packages in Ubuntu Edgy repo:
Package libc6

* edgy (base): GNU C Library: Shared libraries
2.4-1ubuntu12: amd64 i386 powerpc

Package libc6-dev

* edgy (libdevel): GNU C Library: Development Libraries and Header Files
2.4-1ubuntu12: amd64 i386 powerpc

type this:

dpkg -s locales
dpkg -s libc6
report results

cat /etc/apt/sources.list
and report the results.

If you have a newer version of libc6 (which I suspect), then your only real choice is to force install an old version over it. Uninstalling libc6 is impossible, well at least I don't know how to do it without messing up everything that requires the C libraries (including apt-get and dpkg).
 
root@printserver:/home/taiyaki# dpkg -s locales
Package: locales
Status: install ok installed
Priority: important
Section: base
Installed-Size: 7284
Maintainer: Martin Pitt <martin.pitt@ubuntu.com>
Architecture: all
Source: langpack-locales
Version: 2.3.22
Replaces: belocs-locale-data, base-config, libc6 (<< 2.3.6-0ubuntu6), libc6.1 (<< 2.3.6-0ubuntu6)
Depends: belocs-locales-bin (>= 2.4), tzdata
Conflicts: belocs-locale-data, base-config
Conffiles:
/etc/locale.alias 6fc3625723b82f5898c73ff612b583fb
/etc/belocs/iso-639.def d49d83efc939187aae275635a8b352a4
Description: common files for locale support
This package provides support for localized environments (locales).
It installs character and transliteration maps, provides the POSIX
locale definition and provides common scripts for language pack
handling.
.
The actual locale definitions are not part of this package, these are
shipped in the language packs and are installed and removed
automatically.
root@printserver:/home/taiyaki# dpkg -s libc6
Package: libc6
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 9980
Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
Architecture: i386
Source: glibc
Version: 2.5-0ubuntu2
Replaces: ldso (<= 1.9.11-9), timezone, timezones, gconv-modules, libtricks, libc6-bin, netkit-rpc, netbase (<< 4.0)
Provides: glibc-2.5.0-0exp1, glibc-2.5.0-0exp2
Depends: locales (>= 2.3.11)
Suggests: locales, glibc-doc
Conflicts: strace (<< 4.0-0), libnss-db (<= 2.2-6.1.1), timezone, timezones, gconv-modules, libtricks, libc6-doc, libc5 (<< 5.4.33-7), libpthread0 (<< 0.7-10), libc6-bin, libwcsmbs, apt (<< 0.3.0), libglib1.2 (<< 1.2.1-2), netkit-rpc, wine (<< 0.0.20031118-1), cyrus-imapd (<< 1.5.19-15), e2fsprogs (<< 1.35-7), initrd-tools (<< 0.1.84.1), libterm-readline-gnu-perl (<< 1.15-2)
Conffiles:
/etc/init.d/glibc.sh dd18892262012a94b887c5d2778a1c27
/etc/ld.so.conf.d/i486-linux-gnu 36f09aeeab18f6af453d0a1db0a0942c
Description: GNU C Library: Shared libraries
Contains the standard libraries that are used by nearly all programs on
the system. This package includes shared versions of the standard C library
and the standard math library, as well as many others.
Original-Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
root@printserver:/home/taiyaki# cat /etc/apt/sources.list

deb http://us.archive.ubuntu.com/ubuntu/ edgy main restricted
deb****** http://us.archive.ubuntu.com/ubuntu/ edgy restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb****** http://us.archive.ubuntu.com/ubuntu/ edgy-updates restricted main multiverse universe #Added by software-properties

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://us.archive.ubuntu.com/ubuntu/ edgy universe
# deb****** http://us.archive.ubuntu.com/ubuntu/ edgy universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
# deb****** http://us.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu edgy-security main restricted
deb****** http://security.ubuntu.com/ubuntu edgy-security restricted main multiverse universe #Added by software-properties
# deb http://security.ubuntu.com/ubuntu edgy-security universe
# deb****** http://security.ubuntu.com/ubuntu edgy-security universe
deb http://www.getautomatix.com/apt edgy main

#AUTOMATIX REPOS START

deb http://wine.lowvoice.nl/apt dapper main

deb http://archive.canonical.com/ubuntu dapper-commercial main

deb http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse
deb****** http://archive.ubuntu.com/ubuntu edgy-backports main restricted universe multiverse #Added by software-properties

deb http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
deb****** http://archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse #Added by software-properties

deb http://archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb****** http://archive.ubuntu.com/ubuntu edgy-security main restricted universe multiverse #Added by software-properties

deb http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb****** http://archive.ubuntu.com/ubuntu edgy main restricted universe multiverse #Added by software-properties
#AUTOMATIX REPOS END
 
here it is:root@printserver:/home/taiyaki# apt-cache policy libc6 libdc6-dev
libc6:
Installed: 2.5-0ubuntu2
Candidate: 2.5-0ubuntu2
Version table:
*** 2.5-0ubuntu2 0
100 /var/lib/dpkg/status
2.4-1ubuntu12 0
500 http://us.archive.ubuntu.com edgy/main Packages
500 http://archive.ubuntu.com edgy/main Packages
W: Unable to locate package libdc6-dev

cant thank you enough for all the help 🙂


on a side note, I spent a good bit of time today trying to fix IE7 on my roomie's laptop not allowing tabs to be opened.
http://msmvps.com/blogs/spywaresucks/archive/2006/05/02/93238.aspx <- this is the most insightful post I came across, but installing the hotfix and reinstalling IE7 didnt really do anything. Both ieui.dll and xmllite.dll are missing from the hdd, and I couldnt find anywhere to download those from. (supposedely the hotfix should install the latter but it didnt... what gives?) One thing though, tabs open up just fine when logged in as a guest, so I am guessing its definitely some kind of profile corruption. IE7 is actually quite nice, it would be preferable to keep it if possible instead of going with ff2.0 😱 oh well.
 
If you look at the output of the policy command you'll see that libc6 2.4-1ubuntu12 is what's in the repos and somehow you've installed 2.5-0ubuntu2. So you've either installed it by hand (i.e. dpkg -i libc-blah.deb) or something installed it behind your back and seeing that you've got the Automatix stuff in your sources.list I'd blame that first, I've never liked or trusted that stuff.

W: Unable to locate package libdc6-dev

You misspelled libc6-dev...
 
If you want to get it fixed so you can do something else ASAP then just reinstall. There is no shame in that when you've managed to hose it up real good. Otherwise, continue on... 🙂
 
Reinstall? Well, before you try that:

grab libc6 i386 edgy
save it to your desktop.

$ cd ~/Desktop
$ sudo dpkg -i --force-all libc6_2.4-1ubuntu12_i386.deb

That's really your only option for replacing libc unless you want to go through more hoops like externally accessing your Linux partition.
 
oops, sorry about the typo 😱

root@printserver:/home/taiyaki/Desktop# sudo dpkg -i --force-all libc6_2.4-1ubuntu12_i386.deb
dpkg - warning: downgrading libc6 from 2.5-0ubuntu2 to 2.4-1ubuntu12.
(Reading database ... 108389 files and directories currently installed.)
Preparing to replace libc6 2.5-0ubuntu2 (using libc6_2.4-1ubuntu12_i386.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.4-1ubuntu12) ...
Installing new version of config file /etc/init.d/glibc.sh ...

lets see how it goes with the libqt3-mt-dev install 😀
just noticed the monitor in your sig, sounds mighty awesome. only if i had another arm to spare 🙁


update
libqt3-mt-dev:
Depends: libqt3-headers (=3:3.3.6-3ubuntu3) but 3:3.3.7-1ubuntu1 is to be installed
Recommends: libqt3-compat-headers but it is not going to be installed
got the g++, g++-4.1 and g++-3.4 installed fine 🙂 now everything seems to be headed in the right direction.
 
Again, libqt3-headers 3:3.3.7-1ubuntu1 is in feisty and 3:3.3.6-3ubuntu3 is in edgy. Somehow you've managed to get a mish-mash of both distributions, it'll probably be easiest to reinstall and don't do whatever you did to get those feisty packages installed.
 
yeah, i noticed the pattern and got that sorted out. libqt3-mt-dev installed fine afterwards through synaptics.
again, thanks for help and if i run into another problem in compiling that qt3 code, i will let you know 🙂

the code i wrote compiled and linked fine, but gave me this error upon executing:
root@printserver:/home/taiyaki/Desktop/lab6# ./pathloss
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

Luckily, this was easily sorted out following the instructions on this page
http://www.linuxforums.org/forum/ubuntu-help/71737-x-display-errors.html

Great, now I can sit home and do my final project in a relaxing environment instead of having to walk a mile to get to the linux cluster 🙂

now, is there a good tutorial site where i could learn the very basics? i mean i know close to nothing when it comes to linux..
 
You seem pretty well off with it. Just go through tutorials for compiling stuff, that's the best way. Even if it's something you don't want to compile, you'll end up running into 20 errors for each package you install and it'll be a lot of fun fixing them. 😛 But, once you're experienced at it you'll be able to compile stuff without running into any problems (usually). Don't use the 'apt-get source' way if you want to learn. That's usually the easy way. You want to learn because you're bound to run into some package that isn't in the repositories that you want, and you'll have to compile it.
 
Back
Top