LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Howto force synaptic/update manager/aptitude to accept a broken package? (https://www.linuxquestions.org/questions/linux-software-2/howto-force-synaptic-update-manager-aptitude-to-accept-a-broken-package-843232/)

sylvain.mazet 11-09-2010 08:48 AM

Howto force synaptic/update manager/aptitude to accept a broken package?
 
Hi all,

I think I had found an answer to this, but I cannot get my hand
on it, so here it is:

I forced the install of graph-tool package
(from http://downloads.forked.de/graph-tool/debian/ i386/).
Now it is of course tagged as broken, so update manager wont do anything.
But I want to accept it, I know it is not really broken.

(In fact, graph-tool_xxx.deb asks for libcgal4.
squeeze only has libcgal5, so I am betting this is not an issue,
as far as graph-tool is concerned.)

Thanks every one.

stress_junkie 11-09-2010 04:37 PM

You may be able to use the dpkg utility with one or more of the --force options.
Quote:

$ dpkg --force-help
dpkg forcing options - control behaviour when problems found:
warn but continue: --force-<thing>,<thing>,...
stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
Forcing things:
all [!] Set all force options
downgrade[*] Replace a package with a lower version
configure-any Configure any package which may help this one
hold Process incidental packages even when on hold
bad-path PATH is missing important programs, problems likely
not-root Try to (de)install things even when not root
overwrite Overwrite a file from one package with another
overwrite-diverted Overwrite a diverted file with an undiverted version
bad-verify Install a package even if it fails authenticity check
depends-version [!] Turn dependency version problems into warnings
depends [!] Turn all dependency problems into warnings
confnew [!] Always use the new config files, don't prompt
confold [!] Always use the old config files, don't prompt
confdef [!] Use the default option for new config files if one
is available, don't prompt. If no default can be found,
you will be prompted unless one of the confold or
confnew options is also given
confmiss [!] Always install missing config files
breaks [!] Install even if it would break another package
conflicts [!] Allow installation of conflicting packages
architecture [!] Process even packages with wrong architecture
overwrite-dir [!] Overwrite one package's directory with another's file
remove-reinstreq [!] Remove packages which require installation
remove-essential [!] Remove an essential package

WARNING - use of options marked [!] can seriously damage your installation.
Forcing options marked[*] are enabled by default.

sylvain.mazet 11-10-2010 07:55 AM

Thanks for your answer.
But I guess I was not really being clear:

I did:
1) sudo aptitude install graph-tool
Answer from apt: I cannot install, I need libcgal4
2) aptitude search libcgal
Answer: libcgal5 is installed

Then I did "OK, so I will force you to install":
3) aptitude download graph-tool
4) sudo dpkg --force-depends -i graph-toolxxx.deb
Answer from dpkg: OK, I install graph-tool

Now, all is fine, I can use graph-tool.

But, update manager complains and wont do any updating
any more because it says:
One package is broken.

Question is: How do I tell update manager:
"Of course the package is broken, I know it is, just ignore it."

Thanks a lot for reading!
Sylvain.


All times are GMT -5. The time now is 03:26 PM.