Debian Smart-Server Install

Asked by nsnoonan

I have a debian server 6 machine that I'm trying to get set up as a bazaar smart-server but I'm having trouble installing bazaar. Any help would be appreciated. I'm a beginner with python and bazaar, so I'm sure I'm just missing something simple, but here's where I'm at:

::INFO::
usr@debsvr:~$ cat /etc/issue
Debian GNU/Linux 6.0 \n \l

usr@debsvr:~$ dpkg --get-selections | grep python
libpython2.6 install
python install
python-all install
python-all-dev install
python-apt install
python-apt-common install
python-central install
python-crypto install
python-dev install
python-doc install
python-gnupginterface install
python-minimal install
python-paramiko install
python-pkg-resources install
python-profiler install
python-pycryptopp install
python-pyrex install
python-scgi install
python-setuptools install
python-software-properties install
python-support install
python-tk install
python2.5 install
python2.5-dev install
python2.5-minimal install
python2.6 install
python2.6-dev install
python2.6-doc install
python2.6-minimal install
python3.1 install
python3.1-minimal install

# installed all these troubleshooting this issue

usr@debsvr:~$ python -V
Python 2.6.6

::apt-get install attempts::
usr@debsvr:~$ sudo apt-get -t lenny-backports install bzr
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 bzr : Depends: python-configobj but it is not going to be installed
       Recommends: bzrtools but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

# 'apt-get -f install bzr' and 'apt-get -t squeeze-backports install bzr' show the above as well

usr@debsvr:~$ sudo apt-get -f install python-configobj
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 bzr : Depends: python (< 2.6) but 2.6.6-3+squeeze5 is to be installed
       Recommends: bzrtools but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

::deb package install attempts::
user@debsvr:/opt$ sudo dpkg -i bzr_2.0.3-1~bpo50+1_i386.deb
(Reading database ... 37459 files and directories currently installed.)
Preparing to replace bzr 2.0.3-1~bpo50+1 (using bzr_2.0.3-1~bpo50+1_i386.deb) ...
Unpacking replacement bzr ...
dpkg: dependency problems prevent configuration of bzr:
 bzr depends on python (<< 2.6); however:
  Version of python on system is 2.6.6-3+squeeze5.
dpkg: error processing bzr (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 bzr

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
nsnoonan
Solved:
Last query:
Last reply:
Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

If you're using Debian 6.0 (Squeeze), why are you using 5.0 (Lenny) backports?

Installing bzr without backports in Debian 6 should be as simple as running "apt-get install bzr".

Revision history for this message
nsnoonan (nsnoonan) said :
#2

As stated in the original post:

# 'apt-get -f install bzr' and 'apt-get -t squeeze-backports install bzr' show the above as well.

I was following the install directions on the bazaar faq which specifically stated to use that, but tried other install methods as well and have gotten the same results.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#3

apt-get -f install will fix your current installation, I don't think it will try to install new packages.

What happens if you explicitly install the bzr from squeeze rather than the backport (which appears to be broken) ? I.e.

$ apt-get install bzr=2.1.2-1

Revision history for this message
Jelmer Vernooij (jelmer) said :
#4

Uhm, not solved yet.

Revision history for this message
nsnoonan (nsnoonan) said :
#5

Oops. I guess it was a misunderstanding of apt-get and the 'apt-get -f install' error message. If I would have just read the man page for apt-get, I'd know the -f switch fixes broken packages, and does not force anything (which was my assumption). Thanks much for the help!

Here's what I did and what happened:

::your suggestion::
user@debsvr:~$ sudo apt-get install bzr=2.1.2-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 bzr : Depends: python-configobj but it is not going to be installed
       Recommends: bzrtools but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

::'apt-get -f install'::
user@debsvr:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  bzr python-configobj
Suggested packages:
  bzr-gtk bzr-svn python-pycurl xdg-utils python-kerberos
Recommended packages:
  bzrtools
The following NEW packages will be installed:
  python-configobj
The following packages will be upgraded:
  bzr
1 upgraded, 1 newly installed, 0 to remove and 133 not upgraded.
1 not fully installed or removed.
Need to get 3,342 kB of archives.
After this operation, 2,310 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://http.us.debian.org/debian/ stable/main python-configobj all 4.7.2+ds-1 [238 kB]
Get:2 http://http.us.debian.org/debian/ stable/main bzr i386 2.1.2-1 [3,104 kB]
Fetched 3,342 kB in 1s (1,956 kB/s)
Selecting previously deselected package python-configobj.
(Reading database ... 37459 files and directories currently installed.)
Unpacking python-configobj (from .../python-configobj_4.7.2+ds-1_all.deb) ...
Preparing to replace bzr 2.0.3-1~bpo50+1 (using .../archives/bzr_2.1.2-1_i386.deb) ...
Unpacking replacement bzr ...
Processing triggers for man-db ...
Setting up python-configobj (4.7.2+ds-1) ...
Setting up bzr (2.1.2-1) ...
Installing new version of config file /etc/bash_completion.d/bzr ...
Processing triggers for python-support ...
Processing triggers for python-central ...

::check bzr version::
user@debsvr:~$ bzr --help
Bazaar 2.1.2 -- a free distributed version-control tool
http://bazaar-vcs.org/

Basic commands:
  bzr init makes this directory a versioned branch
  bzr branch make a copy of another branch

  bzr add make files or directories versioned
  bzr ignore ignore a file or pattern
  bzr mv move or rename a versioned file

  bzr status summarize changes in working copy
  bzr diff show detailed diffs

  bzr merge pull in changes from another branch
  bzr commit save some or all changes
  bzr send send changes via email

  bzr log show history of changes
  bzr check validate storage

  bzr help init more help on e.g. init command
  bzr help commands list all commands
  bzr help topics list all help topics

Revision history for this message
Jelmer Vernooij (jelmer) said :
#6

On Tue, 2011-03-08 at 15:47 +0000, nsnoonan wrote:
> ::deb package install attempts::
> user@debsvr:/opt$ sudo dpkg -i bzr_2.0.3-1~bpo50+1_i386.deb
> (Reading database ... 37459 files and directories currently installed.)
> Preparing to replace bzr 2.0.3-1~bpo50+1 (using bzr_2.0.3-1~bpo50+1_i386.deb) ...
> Unpacking replacement bzr ...
> dpkg: dependency problems prevent configuration of bzr:
> bzr depends on python (<< 2.6); however:
> Version of python on system is 2.6.6-3+squeeze5.
> dpkg: error processing bzr (--install):
> dependency problems - leaving unconfigured
> Processing triggers for man-db ...
> Errors were encountered while processing:
> bzr

This is an old version of Bazaar - it predates and is not compatible
with Squeeze. Please try installing 2.1.2-1

Cheers,

Jelmer