Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

quick apt backports question

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
hilldweller
Posts: 10
Joined: 2006-06-15 07:58
Location: derbyshire, uk

quick apt backports question

#1 Post by hilldweller »

hi everyone,

i have recently installed sarge and updated it to etch in order to put the latest samba release on it.

to save me reinstalling another pc (as we're talking works time here) to test my theory, in future would i be able to install the stable distro and add the latest samba package to it by means of a command like this:

#apt-get -t sarge-backports install samba

yes or no will do as i realise i could spend the morning installing a debian machine and testing it for myself... :)

tia

ajdlinux
Posts: 2452
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

#2 Post by ajdlinux »

You would need to add the backports repos per the instructions at http://backports.org. Backports is always behind Sid by a little while, but it is more stable.

User avatar
hilldweller
Posts: 10
Joined: 2006-06-15 07:58
Location: derbyshire, uk

#3 Post by hilldweller »

excellent!

i wasn't aware of that site, seems just the ticket.

ta very much.

ajdlinux
Posts: 2452
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

#4 Post by ajdlinux »

Sarge-backports is part of backports.org - it's not actually pure Debian.

cyb.nix
Posts: 89
Joined: 2006-06-11 06:26

#5 Post by cyb.nix »

My sarge is not backported but I could install samba using the command the thread owner mentioned.

Code: Select all

#apt-get -t sarge-backports install samba 
Here is the output.. Later on I am going to remove samba which I dont need it now.

Code: Select all

debian:/# apt-get -t sarge-backports install samba
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  samba-common
Suggested packages:
  samba-doc
The following NEW packages will be installed:
  samba samba-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 4557kB of archives.
After unpacking 11.3MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
debian:/# apt-get -t sarge-backports install samba
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  samba-common
Suggested packages:
  samba-doc
The following NEW packages will be installed:
  samba samba-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 4557kB of archives.
After unpacking 11.3MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.uk.debian.org stable/main samba-common 3.0.14a-3sarge1 [2005kB]
Get:2 http://ftp.uk.debian.org stable/main samba 3.0.14a-3sarge1 [2552kB]
Fetched 4557kB in 1m39s (45.7kB/s)
Preconfiguring packages ...
Selecting previously deselected package samba-common.
(Reading database ... 74192 files and directories currently installed.)
Unpacking samba-common (from .../samba-common_3.0.14a-3sarge1_i386.deb) ...
Selecting previously deselected package samba.
Unpacking samba (from .../samba_3.0.14a-3sarge1_i386.deb) ...
Setting up samba-common (3.0.14a-3sarge1) ...

Setting up samba (3.0.14a-3sarge1) ...
Generating /etc/default/samba...
TDBSAM version too old (0), trying to convert it.
TDBSAM converted successfully.
Starting Samba daemons: nmbd smbd.
debian:/#

Code: Select all

debian:/# dpkg -l samba samba-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                      Version                   Description
+++-=========================-=========================-==================
ii  samba                     3.0.14a-3sarge1           a LanManager-like file and printer server for Unix
ii  samba-common              3.0.14a-3sarge1           Samba common files used by both the server and the client
debian:/#


ajdlinux
Posts: 2452
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

#6 Post by ajdlinux »

You are just installing the old version of samba. -t tells APT to *prefer* a particular release through apt-pinning. It can't find sarge-backports and just installs the normal sarge version.

cyb.nix
Posts: 89
Joined: 2006-06-11 06:26

#7 Post by cyb.nix »

yes.. you are right.
thanx

User avatar
hilldweller
Posts: 10
Joined: 2006-06-15 07:58
Location: derbyshire, uk

#8 Post by hilldweller »

ajdlinux wrote:Sarge-backports is part of backports.org - it's not actually pure Debian.
no but for the most part my distribution will be unchanged, which is really what i wanted. i find the older samba releases cause noise in windows event logs when using ads auth.

i would still prefer to do the backport than install from source or upgrade the whole distro to testing. i find source installs are a bit of a pain to manage once on.

User avatar
jobezone
Posts: 214
Joined: 2005-06-12 07:20
Location: Portugal

#9 Post by jobezone »

ajdlinux wrote:You are just installing the old version of samba. -t tells APT to *prefer* a particular release through apt-pinning. It can't find sarge-backports and just installs the normal sarge version.
And /etc/apt/preferences should look something like this:

Code: Select all

Package: *
Pin: release a=sarge
Pin-Priority: 700

Package: *
Pin: release a=sarge-backports
Pin-Priority: 600
By default, for packages that exist in both of these repositories, apt will choose the version in the release with the higher pin-priority.
The Debian Documentation website contains the FAQ, Installation Manual and the Release Notes for Etch. They're helpful if you want to learn more about debian!

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#10 Post by Lou »

I've never used backports, i read Tina's howto and went to the backports site. I was just wondering if by commenting everything except the backports line in the sources.list, doing an update and then:

# apt-get install mozilla-firefox

would work?

This apt-pinning seems creepy to me. :)
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
DeanLinkous
Posts: 1570
Joined: 2006-06-04 15:28

#11 Post by DeanLinkous »

As long as backports has all the packages required by mozilla-firefox then yep that will worky.

I use to just keep lines in my sources file for stable, testing and unstable and when I was trying to grab the latest XYZ I would uncomment unstable and try to install it and if it looked like it was a mess then I would comment unstable back out, uncomment testing, apt-get update and try again, and then repeat for stable if needed.

But apt-pinning is not that difficult to use or understand it just SEEMS cryptic and as such sort of creeepy :)

fyi-samba in sarge is 3.0.14 i think and backports is only at 3.0.22 or about I believe.... Does that really make a difference?

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#12 Post by Lou »

DeanLinkous wrote:But apt-pinning is not that difficult to use or understand it just SEEMS cryptic and as such sort of creeepy :)
I agree, it seems simple enough, i'm just leery of convoluted operations, i dislike things not simple. :wink:
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
DeanLinkous
Posts: 1570
Joined: 2006-06-04 15:28

#13 Post by DeanLinkous »

:lol: It is really simple, once you get past the cryptic pin preference voodooo! Basically you are setting your most favorite, favorite, and least favorite. Normally it will pull from your most favorite, you use apt the same as you always have. But if something isn't in your most fav repo then it will go down the line and if it finds it in another then it will pull it in. Or you can tell it to go ahead and go for the version in your leasty favorite repo....

Okay, maybe it is convoluted and confusing :D

edit-leave it to someone else to explain what I futz up
http://jaqque.sbih.org/kplug/apt-pinning.html
(old and somewhat out of date but good simple explaination)

ajdlinux
Posts: 2452
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

#14 Post by ajdlinux »

You simply need to add the -t sarge-backports option to apt-get when you want the backports, just copy and paste the prefs file that jobezone wrote - once you do that it's as easy as a small command line option.

Lou
Posts: 1739
Joined: 2006-05-08 02:15

#15 Post by Lou »

Thanks guys, maybe i haven't explained myself correctly. I understand the whys and the hows, i just don't like it.

I followed the instructions in Tina's howto and the backports site, and now i'm the proud user of FF 1.5 .

But still, the feeling lingers... :wink:

I uninstalled the new FF and everything, just to try this:

FWIW: the second time i skipped tha apt-pinning step, commented everything except the backports line, updated and installed FF, it went perfectly.
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid

User avatar
DeanLinkous
Posts: 1570
Joined: 2006-06-04 15:28

#16 Post by DeanLinkous »

I dont (well didnt) like it either. Like you said it was creepy but after playing with it a while I found it gave me more options/choices without screwing with the normal method of operations. pretty cool if a bit creepy! Nothing wrong with commenting out and updating and rinse and repeat but THAT is actually more complicated and confusing than pinning.

But at least we all get to choose which way we want to do it instead of a company and board dictating to us how we will do something or not do something. I love it... :)

-t isnt the only way to use pinning the /flavor is also interesting - btw :)

Post Reply