LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-09-2016, 09:39 PM   #1
baldur_1
Member
 
Registered: Sep 2010
Posts: 247

Rep: Reputation: 28
apt-get update all packages but one


okay, so i run fedora 24 mostly except i run mythbuntu 16.04 on one machine. i have unison set to sync my files across all computers. the issue is of course ubuntu has a max package of 2.48 while fedora is at 2.40 and of course 2.40 cannot communicate with 2.48. so i cannot install the most up to date versions of unison on all computers.

i found 2.40 for ubuntu and installed it via dpkg and everything runs fine however now when when i try and update i just get...

Code:
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:
 unison-all-gtk : Depends: unison-gtk (>= 2.48) but 2.40.102-2ubuntu1 is installed
E: Unmet dependencies. Try using -f.
so i tried to put it on hold and put...

Code:
unison-all-gtk                                  hold
unison-gtk                                      hold
and it still will not let me run apt-get upgrade. i am kind of at a loss. can i stop unison from updating but update the rest of ubuntu or am i just stuck never upgrading because i dared to dream of linux systems that could sync to each other?
 
Old 09-09-2016, 09:53 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,764
Blog Entries: 27

Rep: Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087Reputation: 5087
You can exclude specified packages from updates.

http://askubuntu.com/questions/99774...pt-get-upgrade
 
Old 09-09-2016, 09:55 PM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,759

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
Downgrade or remove unison-all-gtk.
 
Old 09-11-2016, 11:11 AM   #4
baldur_1
Member
 
Registered: Sep 2010
Posts: 247

Original Poster
Rep: Reputation: 28
okay, so by the suggestions, i removed unison-all-gtk and all packages unison. then i installed the version ONLY of unison i needed. so then i...

Code:
# apt-mark hold unison-all
unison-all set on hold.

# apt-mark hold unison-gtk
unison-gtk set on hold.

# apt-mark showhold
unison-gtk

# apt-mark hold unison-all-gtk
unison-all-gtk set on hold.

# apt-cache search unison*
unison - file-synchronization tool for Unix and Windows
unison-all - file synchronization tool (all console versions)
unison-all-gtk - file synchronization tool (all GTK+ versions)
unison-gtk - file-synchronization tool for Unix and Windows with GTK+ interface

# apt-mark hold unison
unison set on hold.

# apt-mark hold unison-all
unison-all set on hold.

# apt-mark hold unison-all-gtk
unison-all-gtk set on hold.

# apt-mark hold unison-gtk
unison-gtk was already set on hold.

#apt-mark showhold
unison-all-gtk
unison-gtk

# apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [324 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [321 kB]
Hit:7 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
Hit:8 http://ppa.launchpad.net/mythbuntu/0.28/ubuntu xenial InRelease
Fetched 740 kB in 1s (421 kB/s)
Reading package lists... Done

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
  unison-gtk
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
that is the exact code input/output from ubuntu 16.04 and you can see, it is still trying to install the incompatible version of unison. i really am not sure what to do at this point.
 
Old 09-11-2016, 11:33 AM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,181
Blog Entries: 21

Rep: Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091Reputation: 3091
Try making a folder in /etc/apt.

Name it "preferences.d"

Inside that folder make a text file

Code:
Package: *<name of blocked repo download you want>*
Pin: origin ""
Pin-Priority: -1
Name it what you want when you save it. If you need more than one entry in that text file.
eg: unison-hold, unison-gtk,unison-all-gtk, etc......

By all means put them in that file. A seperate entry for each with a pin priority. Then reboot and run apt-update again and apt-get upgrade again.

If it don't work. Delete the folder. That is all I got. It keeps systemd off of my box.

Quote:
i dared to dream of linux systems that could sync to each other?

The 1st thought that entered my head when I read that.
 
Old 09-11-2016, 11:49 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,124
Blog Entries: 1

Rep: Reputation: 870Reputation: 870Reputation: 870Reputation: 870Reputation: 870Reputation: 870Reputation: 870
# apt-get -f install

Alternatively force them to install.

# dpkg -i --force-all /var/cache/apt/archives/...package...deb

This has gotten me over a few humps in the past. Where both packages had deps on the other, so neither would install. Although never on the stable release of debian. Unless I waited a really really long time to update. Once they're forcefully installed, install them again in a less forceful manner to ensure it's all cool now.

# apt-get install --reinstall ...questionably.installed.package...

Another trick is to change the status file in that /var/cache/apt/ or /var/lib/dpkg/ area to report installed, but only as a last resort, and only if you don't care if that package is actually installed. But it can be enough to get the package management system to move along again. And maybe get those packages to install less forcefully.
 
Old 09-12-2016, 12:00 PM   #7
baldur_1
Member
 
Registered: Sep 2010
Posts: 247

Original Poster
Rep: Reputation: 28
okay, thanks for the help. i got it all worked out now. the idea was from rokytnji, searching and reading on pinning and reading "man apt_preferences". so i went into /etc/apt/preferences.d and created a file called packages (but the name didnt matter). i set it up like this...

Code:
Package: unison-gtk
Pin: version 2.40.102*
Pin-Priority: 1000

Package: unison-gtk
Pin: version 2.48.3*
Pin-Priority: -1000
this set to prefer package as 2.40 and defer package 2.48. one or the other would have worked but i wanted to do my best to make sure it would not update.

thanks for the help, i do appreciate it as always.
 
  


Reply

Tags
apt-get upgrades


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem with apt-get update binary AMD64 packages sigma957 Debian 2 05-31-2016 04:52 PM
exclude some packages from updates using 'apt-get update' cccc Debian 2 06-21-2012 05:58 AM
How to prevent apt from deleting packages in /var/cache/apt/archives ? abc.linux Debian 11 11-07-2009 12:46 PM
stupidly deleted security packages/folder and now apt-get won't update Cyberman Debian 1 07-04-2008 04:37 PM
Packages.gz without lib dependencies: error when apt-get update Xeratul Linux - General 0 02-12-2007 04:59 PM

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

All times are GMT -5. The time now is 02:43 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