Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inversed replacement question in -y upgrade run, failure to replace existing package #1687

Open
fichtner opened this issue May 17, 2018 · 0 comments

Comments

@fichtner
Copy link
Contributor

fichtner commented May 17, 2018

Hello,

We have a repository that only holds python27, but a user installed python35 on his box.

During an upgrade the following is asked:

python35 has no direct installation candidates, change it to python27? [Y/n]:

Since -y is used the answer is "yes", but the command fails because python27 is already installed....

python35 has no direct installation candidates, change it to python27? [Y/n]: Y
Checking for upgrades (149 candidates): 100%
Processing candidates (149 candidates): 100%
pkg: sqlite error while executing UPDATE packages SET name=?1  WHERE name=?2; in file pkg_jobs.c:1731: UNIQUE constraint failed: packages.name
:
[143/144] Fetching py27-dnspython-1.15.0.txz: 100%  167 KiB 170.6kB/s    00:01
Checking integrity...Assertion failed: (strcmp(uid, p->uid) != 0), function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, line 386.
Child process pid=54683 terminated abnormally: Abort trap

It would probably suffice if someone could explain what replacements are and how they can be disabled?

Also thought about reversing the question, because -y is not really appropriate as the "default" answer is reversed and should be "no"?

Cheers,
Franco

https://forum.opnsense.org/index.php?topic=7253.0

@fichtner fichtner changed the title interactive replacement question in -y upgrade run inversed replacement question in -y upgrade run, failure to replace existing package May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant