LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with dpkg -i (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-dpkg-i-210896/)

pablowablo 07-29-2004 12:06 AM

Problems with dpkg -i
 
Hi, I'm having problems installing the bittorrent client using dpkg -i filename.deb... here is what happened

oot@HABO:/home/pablo# dpkg -i bit
(Reading database ... 130017 files and directories currently installed.)
Preparing to replace bittorrent 3.4.2-1 (using bit) ...
Unpacking replacement bittorrent ...
dpkg: dependency problems prevent configuration of bittorrent:
bittorrent depends on python (>= 2.3); however:
Version of python on system is 2.2.2-6.
dpkg: error processing bittorrent (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
bittorrent


then I downloaded python 2.4 and installed it like this

root@HABO:/home/pablo# dpkg -iR python.deb
dpkg: considering removing python-xmlbase in favour of python ...
dpkg: no, cannot remove python-xmlbase (--auto-deconfigure will help):
gramps depends on python-xmlbase (>= 2.2.2-1)
python-xmlbase is to be removed.
dpkg: regarding python.deb containing python:
python conflicts with python-xmlbase
python-xmlbase (version 2.2.2-6) is installed.
dpkg: error processing python.deb (--install):
conflicting packages - not installing python
Errors were encountered while processing:
python.deb



I don't know what to do now, is there any command where dpkg will have to handle dependencies, so I don't have to install python? thanks in advance

Demonbane 07-29-2004 12:08 AM

Quote:


I don't know what to do now, is there any command where dpkg will have to handle dependencies, so I don't have to install python? thanks in advance


try apt-get

pablowablo 07-29-2004 12:14 AM

Hmmm how do I use apt-get with a .deb file? I don't really know how apt-get works but doesn't that look in /etc/apt/sources.list? What if the file I want to install is not in that list? and how do i know what to put after apt-get install?

I tried apt-get install bit but it couldn't find package bit

Demonbane 07-29-2004 06:47 AM

bittorrent 3.4.2 is available on unstable/testing branch, add them to your sources.list then do
Code:

apt-get update && apt-get install bittorent
and you're set.

for your reference this is what i have in my /etc/apt/sources.list
Code:

deb http://non-us.debian.org/debian-non-US sid/non-US main contrib non-free
deb-src http://non-us.debian.org/debian-non-US sid/non-US main contrib non-free


pablowablo 07-29-2004 09:30 AM

thanks!

but out of curiosity... how do I know what url to put in my sources.list? and before I can use apt-get install, does the package have to be in my sources.list? (I noticed that my sources.list only has a few items)

Demonbane 07-29-2004 09:56 AM

If you like you can use the one I use, or if you want the US one its
Code:

deb http://http.us.debian.org/debian sid main contrib non-free
If you want sarge instead just change "sid" to "sarge"
Sid is the unstable branch, Sarge is the testing branch, that means sarge will eventually become the next Debian release, sid will always have the latest packages.
"apt-get update" retrieves the package list from the sources specified in your sources.list so you need to do it first.
apt-get makes it easier to update your system and install software packages. For example when Debian Sarge comes out, all you need is have your apt source(s) point to the sarge(or stable which it will become) then do "apt-get dist-upgrade" then it'll automatically download and install all necessary packages for upgrading to Sarge.

Check out the Debian documentation if you want to know more:
http://www.debian.org/doc/manuals/ap.../index.en.html

pablowablo 07-29-2004 10:15 AM

Thanks again, I'm sorta getting the idea now, I will check out the documentation.


All times are GMT -5. The time now is 11:37 AM.