LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2006, 10:33 AM   #1
prestosd
LQ Newbie
 
Registered: Sep 2006
Location: n e b r a s k a
Distribution: Ubuntu 6.10
Posts: 4

Rep: Reputation: 0
Unhappy Can't install tzdata (need for a lib of another program)


I need to install multiple programs that require libc6. So I download libc6, and it needed tzdata, so I downloaded that.....etc. Anyway, when I try to install tzdata (with synaptic I get this console message:

(Reading database ... 86817 files and directories currently installed.)
Unpacking tzdata (from .../tzdata_2006l-1_all.deb) ...
dpkg: error processing /home/prestosd/tzdata_2006l-1_all.deb (--install):
trying to overwrite '/usr/share/zoneinfo/Africa/Algiers', which is also in pack
age locales
dpkg-deb: subprocess paste killed by signal (Broken pipe)

Can anyone help please?
 
Old 09-30-2006, 11:30 PM   #2
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
You really have two separate problems happening here. The first is getting dependency problems because manually downloading then installing. The second is the 'broken pipe' error.

To avoid dependency problems, do all your installing with Synaptic (or Kpackage or apt-get) directly instead of downloading them manually then using Synaptic to install the downloaded package.

Here is a brief overview of installing packages in a Debian based system:

Actual package installation is done by dpkg. This is a text based application. For an already downloaded package you could do 'dpkg -i <path & package name>. But this may fail because there may be dependencies which dpkg does not know how to find and has not been told to install.

So the next level is apt-get which will search the net for the packages it needs (including dependency packages), download and install them. It uses dpkg to do the actual install and maintains a file called /etc/apt/sources.list to know where to search for packages. This file must be updated regularly as packages get moved around in the internet repositories. This is done with the command 'apt-get update'.

But to use apt-get you must know what packages are available, so you will need a 'package browser' list.

The most basic of these is dselect, which is text based and not overly user friendly. It also maintains a packages available database file which must be updated regularly with 'dselect update'. I've been told that dselect update will update both the dselect database and the apt-get sources.list so it is preferable to use this instead of the 'apt-get update' command which only updates apt's sources.list.

More user friendly alternatives for searching for packages are the gui based applications Kpackage and Synaptic. Both of these provide information on the packages available and can download and install the package.

Dselect, Kpackage and Synaptic all use apt-get to do the actual downloading & installing.

Debian based systems must use either Debian packages or applications compiled from source. To install an RPM package, first convert it to a .deb using 'alien'.
ie: alien -d <rpm packagename>

So, for an already download package, you can try dpkg -i <package> but be prepared for dependency problems which you will have to solve yourself by manually tacking down and installing any required dependencies.

Better way is to use apt-get & let it do the download:

First, you must become 'root'. Permissions are a big thing in Linux, only root (administrator level permissions) is allowed to install things. So, type 'su' to become root. Then do 'dselect update'. Usually the first time it is run it will need to download quite a bit & some of the downloads may fail. If this happens, just run the command again, eventually it will get all the data it needs.

To install (for example) 'firefox', first make sure your package lists are up to date with 'dselect update' then 'apt-get install firefox'. It should download the application & all required dependencies & install the application.

Selecting 'firefox' from Kpackage or Synaptic & following the install procedure (mark & install marked, etc) should do the same thing.

If you use Synaptic or Kpackage to install an already downloaded package it will skip the apt-get step & just go directly to dpkg which will give dependency problems such as you have just experienced (needing tzdata).

Your next problem is the 'broken pipe' thing. This may happen even if you used apt-get to retrieve and download the application. There are two possible solutions.

The best way is to let apt-get solve it for you...if it can. From a console, become root then type 'apt-get -f install' (-f is for "fix"). If that fixes it, all is well.

If not, first try removing tzdata and libc6 then reinstalling using apt-get
Code:
apt-get remove txdata libc6
apt-get install libc6
If this doesn't work, try removing then reinstalling the conflicting package.
Code:
apt-get remove locales
if this works apt will probably complete the install of tzdata at the same time since it is already in process of being installed. If it doesn't, then do
Code:
 apt-get install tzdata
. Then do
Code:
apt-get install locales
to replace the locales package.

A warning: if your system has not been updated for some time, when you try to remove locales, it *may* want to remove a whole bunch of other stuff when you remove locales because of interlocking dependencies. If that happens, probably try 'apt-get install locales' to update things first.

If none of the above works, you can try forcing dpkg to overwrite the conflicting file.
Code:
dpkg --force-overwrite -i tzdata.deb
. You will probably have to specify the full path to the tzdata.deb file. You should follow this up with
Code:
 apt-get check
to may sure apt isn't showing any errors when done.

Another warning: Any time you force things you *may* break things. At the very least you may have to redo your locales settings since you will have overwritten a config file somewhere. The command for this is
Code:
dpkg-reconfigure locales
.

Hope this helps.
 
Old 10-01-2006, 04:42 PM   #3
prestosd
LQ Newbie
 
Registered: Sep 2006
Location: n e b r a s k a
Distribution: Ubuntu 6.10
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks! I'll try it all out!
 
Old 10-25-2006, 10:41 AM   #4
gLoo
LQ Newbie
 
Registered: Oct 2006
Location: Germany
Posts: 4

Rep: Reputation: 0
I have pretty much the same problem.

I installed Linux recently, at my uncle's. However, at home, I access the internet via WLAN. Therefore I can't use the apt-get "technique". I have to start windows, download the required packages there, then start Linux in order to install them.

It seems as if I needed to install NdisWrapper to get the WLAN going. Therefore, I need to install libc6 and therefore I need to install tzdata.
I get the error that is mentioned above (in German, though ). What do I have to do, to install tzdata when not having an internet connection? (at least not when using Linux)
 
Old 10-25-2006, 09:46 PM   #5
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
What have you tried so far?
 
Old 10-26-2006, 05:50 AM   #6
gLoo
LQ Newbie
 
Registered: Oct 2006
Location: Germany
Posts: 4

Rep: Reputation: 0
Hello again,

I am currently trying to install NdisWrapper. As I don't have access to the internet, I were told to burn the file "ubuntu-6.06.1-alternate-i386.iso" on a CD and install it from there.
Therefore, I need to edit the file sources.list.

I were told to use the command
Code:
vi /etc/apt/source.list
I then had to press "i" in order to edit the file and put "#"s in front of all the line apart from those containing "cdrom". I did so. However, I guess it's me being dumb, but I can't get out there anymore.
I am supposed to press "wq" but if I do so, I simply write these letters. It also says I can exit by pressing ESC but I only get that annoying "peep"-sound then.

Someone else told me to try
Code:
sudo gedit /etc/apt/sources.list
If I enter that line, it said "command does not exit" or something like that.


(it's not that easy for me to describe these things in English - I hope you understand.)
 
Old 10-26-2006, 04:54 PM   #7
jlopezm
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu Drake
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by gLoo
Hello again,

I am currently trying to install NdisWrapper. As I don't have access to the internet, I were told to burn the file "ubuntu-6.06.1-alternate-i386.iso" on a CD and install it from there.
Therefore, I need to edit the file sources.list.

I were told to use the command
Code:
vi /etc/apt/source.list
I then had to press "i" in order to edit the file and put "#"s in front of all the line apart from those containing "cdrom". I did so. However, I guess it's me being dumb, but I can't get out there anymore.
I am supposed to press "wq" but if I do so, I simply write these letters. It also says I can exit by pressing ESC but I only get that annoying "peep"-sound then.

Someone else told me to try
Code:
sudo gedit /etc/apt/sources.list
If I enter that line, it said "command does not exit" or something like that.


(it's not that easy for me to describe these things in English - I hope you understand.)
Hi,

I'm also a new Ubuntu user. But I think your problem is that you have to execute "sudo vi /etc/apt/source.list", that's why you are listening that 'beep' you said. All things that you want to do in Ubuntu and need root permission, you have to use the "sudo" before the command.

Then, if you use gedit and it said that doesn't existe maybe its because you don't have it installed. Maybe you should try something like "sudo apt-get install gedit".

Good luck!
Jorge
 
Old 10-27-2006, 04:48 AM   #8
gLoo
LQ Newbie
 
Registered: Oct 2006
Location: Germany
Posts: 4

Rep: Reputation: 0
Hi,

thanks for your reply, jolepzm. However, I am afraid it doesn't really help me.
Quote:
But I think your problem is that you have to execute "sudo vi /etc/apt/source.list"
I don't think that is the problem as I logged in as root before (by using "su", then entered my password).
The problem wasn't that I couldn't use "vi" but that I couldn't leave the "vi"-mode when I finished editing that file (sources.list). However, I fixed that.
(for those having the same problem: you need to type :wq which will save the changes you did and quit "vi"-mode.)
Quote:
Then, if you use gedit and it said that doesn't existe maybe its because you don't have it installed.
Ah! That of course may be the problem! Hehe, I didn't know you have to install it.
Your suggestion to use "sudo apt-get install gedit" would unfortunately not help me either because I can't access the internet without the WLAN I am trying to get working. (I always have to switch to Windows - rather annoying and time-consuming (if that is a word )).


Nevertheless, I managed to edit the sources.list and then tried to install NdisWrapper from the CD. Therefore I had to mount the CD, and had to use (as root),
Code:
apt-cdrom add
Code:
apt-get update
Code:
apt-get install ndiswrapper-utils
However, I still got an error that says there are other packages need to install NdisWrapper and that I may try,
Code:
apt-get -f install NdisWrapper-utils
Unfortunately, I still didn't work. It says I needed tzdata which can't be installed.
I downloaded the file tzdata_2006n-1_all.deb manually (using Windows) and wanted to install it by using "dpkg -i <path/filename>"
Doing so, I got the very same error prestosd already posted,
Quote:
(Reading database ... 86817 files and directories currently installed.)
Unpacking tzdata (from .../tzdata_2006l-1_all.deb) ...
dpkg: error processing /home/prestosd/tzdata_2006l-1_all.deb (--install):
trying to overwrite '/usr/share/zoneinfo/Africa/Algiers', which is also in pack
age locales
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Any ideas?
 
Old 10-28-2006, 12:59 AM   #9
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
Try
Code:
dpkg --force-overwrite -i tzdata.deb
or try removing locales then reinstalling it later.
 
Old 10-29-2006, 04:05 AM   #10
gLoo
LQ Newbie
 
Registered: Oct 2006
Location: Germany
Posts: 4

Rep: Reputation: 0
ok, it is installed now. Thanks for your help.
 
  


Reply

Tags
help



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xine-lib install Clockwork Orange Linux - Software 2 07-17-2006 12:13 PM
Install lib file??? dpeirce Mandriva 9 11-06-2005 12:23 AM
Conflicts when trying to install xine-lib steffendenize SUSE / openSUSE 16 11-05-2005 05:39 PM
Problem linking assembly program with C lib. 95se Programming 1 03-08-2005 09:44 PM
anybody know how to install - xine-lib-1-rc3a.tar.gz sanjaya Linux - Software 1 02-12-2004 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration