[Samba] Samba upgrade issue . . .

Steve Ankeny steve_a at cinergymetro.net
Mon Jun 15 08:16:02 MDT 2015


On 06/15/2015 09:45 AM, L.P.H. van Belle wrote:
> Ok Steve,
>
> to be sure..
> run :
> apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4
>
> if not done yet.
> add to /etc/apt/source.list.d/openchange.list
> debhttp://inverse.ca/ubuntu  trusty trusty
> or
> debhttp://inverse.ca/ubuntu-nightly  trusty trusty
>
> to force the needed packages.
> __COPY_PAST_START
> cat << EOF >> /etc/apt/preferences.d/preferences-ubuntu-trusty
> Package: *
> Pin: release o=Ubuntu
> Pin-Priority: 500
>
> Package: *
> Pin: release o=Inverse Ubuntu distribution
> Pin-Priority: 600
>
> EOF
> __COPY_PAST_END
>
> ( make sure you always have 1 empty line between the different pinnings. )
>
> apt-get update
> apt-cache policy samba.
>
> should now say samba pin 600 from inverse.
>
> Find out other pinning info, this is how i do it.
> ls/var/lib/apt/lists/*Release
> cat (a file of the above command) | head -n10
> and some pinning info here :
> http://www.argon.org/~roderick/apt-pinning.html
>
> ( my example for debian )
>
> Package: *
> Pin: release n=wheezy,o=Debian
> Pin-Priority: 500
>
> Package: *
> Pin: release n=wheezy,l=Debian-Security
> Pin-Priority: 500
>
> Package: *
> Pin: release n=wheezy-updates
> Pin-Priority: 500
>
> Package: *
> Pin: release a=testing
> Pin-Priority: 100
>
> Package: *
> Pin: release a=unstable
> Pin-Priority: 50
>
> Package: *
> Pin: release n=wheezy-backports
> Pin-Priority: 400
>
> Package: *
> Pin: release o=SerNet,a=wheezy,n=wheezy
> Pin-Priority: 600
>
> Package: *
> Pin: release o=Dell Inc,a=wheezy,n=wheezy
> Pin-Priority: 300
>
> Package: *
> Pin: origin apt.yourownaptserver.tld
> Pin-Priority: 400
>
> all packages from Sernet are preffered, in this case.
> ( my AD-DC )
>
>
> and if upgrade failes again on samba, then the quickest way is hack the status file.
> since the files already exist on the system and samba is installed and running this should not harm.
> make a backup of : /var/lib/dpkg/status
> open it with an editor.
> search for "Package samba"
> and change status to :
> Status: install ok installed
> you probly see" installed ok not-configured.
>
> !! If you dont see an "Installed-Size" then dont change it.
> than its not installed yet.
>
>
> Greetz,
>
> Louis
>

adam at sogo:~$ sudo apt-key adv --keyserver keys.gnupg.net --recv-key 
0x810273C4
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring 
--homedir /tmp/tmp.rwraiqkohe --no-auto-check-trustdb --trust-model 
always --keyring /etc/apt/trusted.gpg --primary-keyring 
/etc/apt/trusted.gpg --keyserver keys.gnupg.net --recv-key 0x810273C4
gpg: requesting key 810273C4 from hkp server keys.gnupg.net
gpg: key 810273C4: "Inverse Support (package signing) 
<support at inverse.ca>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1


'deb http://inverse.ca/ubuntu trusty trusty' is already in my 
'/etc/apt/sources.list'


I created the file '/etc/apt/preferences.d/preferences-ubuntu-trusty'


adam at sogo:~$ sudo apt-cache policy samba
samba:
   Installed: 2:4.1.6+dfsg-1ubuntu2.14.04.7
   Candidate: 2:4.1.18+dfsg-3~inverse1
   Version table:
      2:4.1.18+dfsg-3~inverse1 0
         600 http://inverse.ca/ubuntu/ trusty/trusty amd64 Packages
  *** 2:4.1.6+dfsg-1ubuntu2.14.04.7 0
         500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main 
amd64 Packages
         500 http://security.ubuntu.com/ubuntu/ trusty-security/main 
amd64 Packages
         100 /var/lib/dpkg/status
      2:4.1.6+dfsg-1ubuntu2 0
         500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

I see the difference with the pinning.

As I stated earlier, I'll have to wait until after-hours, as I'll take a 
snapshot then try the upgrade.

thx so much, Louis and Rowland!



More information about the samba mailing list