Error installing Anaconda through dnf

Hi, I am using Fedora 34 on Gnome. I installed anaconda-34.24.9-1.fc34.x86_64 through dnf, but if I try to run it I am met with the following message.

$ sudo anaconda
Starting installer, one moment...
anaconda 34.24.9-1.fc34 for anaconda bluesky (pre-release) started.
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2 and in second TMUX pane (ctrl+b, then press 2)
 * when reporting a bug add logs from /tmp as separate text/plain attachments
Traceback (most recent call last):
  File "/usr/sbin/anaconda", line 425, in <module>
    context.payload_type = anaconda.payload.type
  File "/usr/lib64/python3.9/site-packages/pyanaconda/anaconda.py", line 102, in payload
    self._payload = klass(self.ksdata)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/payload/dnf/payload.py", line 113, in __init__
    configure_dnf_logging()
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/payloads/payload/dnf/initialization.py", line 33, in configure_dnf_logging
    libdnf.repo.LibrepoLog.addHandler(DNF_LIBREPO_LOG)
  File "/usr/lib64/python3.9/site-packages/libdnf/repo.py", line 553, in addHandler
    return _repo.LibrepoLog_addHandler(filePath, debug)
libdnf._error.Error: Cannot open /tmp/dnf.librepo.log: Permission denied

Right before the traceback is printed, the monitor and Bluetooth are turned off for a couple of seconds and I get sent back to my login screen on Gnome. Would you be able to help me troubleshoot this? It looks like a permission issue but I can’t quite understand what to do next.

Why are you trying to run the installer after you’ve already installed?

2 Likes

I am just trying to run the program, not the installer

anaconda IS the installer.
Maybe “man anaconda” can give you some options. It is acting like it needs arguments supplied.

This may be of help.

3 Likes

Are you maybe trying to install something else that is also called “anaconda”?

Perhaps, this:
https://anaconda.org/anaconda/python

If so, as others have pointed out, the anaconda you installed is this one:
https://anaconda-installer.readthedocs.io/en/latest/intro.html

Which may not be what you were expecting.

5 Likes

That was it, thank you. Did not realise it was not on the repos

1 Like

That package should really be renamed to resolve this disambiguity; maybe something like anaconda-os-installer.

I know Fedora’s Anaconda is older, but unfortunately the Anaconda Python distribution is much more widely used (not to mention it is cross-platform).

1 Like

The Anaconda distribution is not 100% free & open source, so it would never be packaged in Fedora.

If you want miniconda though, that is available as dnf install conda.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.