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

Fedora Kinoite attempts to update using yum #637

Closed
2 of 6 tasks
michaeljwood opened this issue Jan 6, 2024 · 1 comment · Fixed by #638
Closed
2 of 6 tasks

Fedora Kinoite attempts to update using yum #637

michaeljwood opened this issue Jan 6, 2024 · 1 comment · Fixed by #638
Labels
C-bug Something isn't working

Comments

@michaeljwood
Copy link
Contributor

Erroneous Behavior

Running topgrade on Fedora Kinoite attempts to update using yum, and fails since that is not a supported update method.

Expected Behavior

topgrade would use rpm-ostree to update the base system

Steps to reproduce

run topgrade on a Fedora Kinoite installation

Possible Cause (Optional)

Fedora Kinoite is the KDE desktop variant of Fedora Silverblue, so should be using rpm-ostree to update like Fedora Silverblue.

Problem persists without calling from topgrade

  • Yes
  • No

Did you run topgrade through Remote Execution

  • Yes
  • No

If yes, does the issue still occur when you run topgrade directlly in your
remote host

  • Yes
  • No

Configuration file (Optional)

Additional Details

  • Operation System/Version

Fedora Kinoite 39

  • Installation

cargo install topgrade

  • Topgrade version (topgrade -V)
    13.0.0

Verbose Output (topgrade -v)

mike@mike-thinkpad:/var/home/mike$ topgrade -v
DEBUG Configuration at /home/mike/.config/topgrade.toml
DEBUG Version: 13.0.0
DEBUG OS: x86_64-unknown-linux-gnu
DEBUG Args { inner: ["topgrade", "-v"] }
DEBUG Binary path: Ok("/var/home/mike/.cargo/bin/topgrade")
DEBUG self-update Feature Enabled: false
DEBUG Configuration: Config { opt: CommandLineArgs { edit_config: false, show_config_reference: false, run_in_tmux: false, cleanup: false, dry_run: false, no_retry: false, disable: [], only: [], custom_commands: [], env: [], verbose: true, keep_at_end: false, skip_notify: false, yes: None, disable_predefined_git_repos: false, config: None, remote_host_limit: None, show_skipped: false, log_filter: "warn", gen_completion: None, gen_manpage: false, no_self_update: false }, config_file: ConfigFile { include: Some(Include { paths: None }), misc: Some(Misc { pre_sudo: None, sudo_command: None, disable: None, ignore_failures: None, remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, tmux_arguments: None, set_title: None, display_time: None, assume_yes: None, no_retry: None, run_in_tmux: None, cleanup: None, notify_each_step: None, skip_notify: None, bashit_branch: None, only: None, no_self_update: None, log_filters: None }), pre_commands: Some({}), post_commands: Some({}), commands: Some({}), python: Some(Python { enable_pip_review: None, enable_pip_review_local: None, enable_pipupgrade: None, pipupgrade_arguments: None }), composer: Some(Composer { self_update: None }), brew: Some(Brew { greedy_cask: None, autoremove: None }), linux: Some(Linux { yay_arguments: None, aura_aur_arguments: None, aura_pacman_arguments: None, arch_package_manager: None, show_arch_news: None, garuda_update_arguments: None, trizen_arguments: None, pikaur_arguments: None, pamac_arguments: None, dnf_arguments: None, nix_arguments: None, nix_env_arguments: None, apt_arguments: None, enable_tlmgr: None, redhat_distro_sync: None, suse_dup: None, rpm_ostree: None, emerge_sync_flags: None, emerge_update_flags: None, home_manager_arguments: None }), git: Some(Git { max_concurrency: None, pull_arguments: None, push_arguments: None, repos: None, pull_only_repos: None, push_only_repos: None, pull_predefined: None }), windows: Some(Windows { accept_all_updates: None, self_rename: None, open_remotes_in_new_terminal: None, enable_winget: None, wsl_update_pre_release: None, wsl_update_use_web_download: None }), npm: Some(NPM { use_sudo: None }), yarn: Some(Yarn { use_sudo: None }), vim: Some(Vim { force_plug_update: None }), firmware: Some(Firmware { upgrade: None }), vagrant: Some(Vagrant { directories: None, power_on: None, always_suspend: None }), flatpak: Some(Flatpak { use_sudo: None }), distrobox: Some(Distrobox { use_root: None, containers: None }) }, allowed_steps: [AM, AppMan, Asdf, Atom, Bin, Bob, BrewCask, BrewFormula, Bun, Cargo, Chezmoi, Chocolatey, Choosenim, Composer, Conda, ConfigUpdate, Containers, CustomCommands, DebGet, Deno, Distrobox, DkpPacman, Dotnet, Emacs, Firmware, Flatpak, Flutter, Fossil, Gcloud, Gem, Ghcup, GithubCliExtensions, GitRepos, GnomeShellExtensions, Go, Guix, Haxelib, Helm, HomeManager, Jetpack, Julia, Juliaup, Kakoune, Helix, Krew, Lure, Macports, Mamba, Miktex, Mas, Maza, Micro, Myrepos, Nix, Node, Opam, Pacdef, Pacstall, Pearl, Pip3, PipReview, PipReviewLocal, Pipupgrade, Pipx, Pkg, Pkgin, Pnpm, Powershell, Protonup, Raco, Rcm, Remotes, Restarts, Rtcl, RubyGems, Rustup, Scoop, Sdkman, SelfUpdate, Sheldon, Shell, Snap, Sparkle, Spicetify, Stack, Stew, System, Tldr, Tlmgr, Tmux, Toolbx, Vagrant, Vcpkg, Vim, Vscode, Winget, Wsl, WslUpdate, Yadm, Yarn] }
DEBUG Detected "/usr/bin/git" as "git"
DEBUG Cannot find "pwsh"
DEBUG Cannot find "powershell"
DEBUG Path "/home/mike/.config/emacs" doesn't exist
DEBUG Path "/home/mike/.emacs.d" doesn't exist
DEBUG Cannot find "doas"
DEBUG Detected "/usr/bin/sudo" as "sudo"
DEBUG Step "packer.nu"
DEBUG Step "System update"

── 09:18:46 - System update ────────────────────────────────────────────────────
DEBUG Detected "/usr/bin/rpm-ostree" as "rpm-ostree"
DEBUG Cannot find "dnf"
DEBUG Executing command /usr/bin/sudo yum upgrade
sudo: yum: command not found
DEBUG Command failed: Err(
0: Command failed: /usr/bin/sudo yum upgrade
1: /usr/bin/sudo failed: exit status: 1

Location:
/home/mike/.cargo/registry/src/index.crates.io-6f17d22bba15001f/topgrade-13.0.0/src/steps/os/linux.rs:229)
DEBUG Step "System update" failed:
0: Command failed: /usr/bin/sudo yum upgrade
1: /usr/bin/sudo failed: exit status: 1

Location:
/home/mike/.cargo/registry/src/index.crates.io-6f17d22bba15001f/topgrade-13.0.0/src/steps/os/linux.rs:229
System update failed:
0: Command failed: /usr/bin/sudo yum upgrade
1: /usr/bin/sudo failed: exit status: 1

Location:
/home/mike/.cargo/registry/src/index.crates.io-6f17d22bba15001f/topgrade-13.0.0/src/steps/os/linux.rs:229
Retry? (y)es/(N)o/(s)hell/(q)uit

@michaeljwood michaeljwood added the C-bug Something isn't working label Jan 6, 2024
@michaeljwood
Copy link
Contributor Author

Opened a fix in 638. Note, I'm new to contributing to github, so please let me know if there's something I should be doing better/differently.

@SteveLauC SteveLauC linked a pull request Jan 7, 2024 that will close this issue
10 tasks
michaeljwood added a commit to michaeljwood/topgrade that referenced this issue Jan 7, 2024
Rename FedoraSilverblue Distribution to FedoraImmutable.  Add test cases for Onyx, Sericea and Silverblue.  Rename upgrade method to match distribution.

Fixes topgrade-rs#637
SteveLauC pushed a commit that referenced this issue Jan 8, 2024
… FedoraImmutable (#638)

* fix(os) consider Fedora Kinoite to be the Fedora Silverblue distribution

* fix(os) support additional Fedora immutable variants

Rename FedoraSilverblue Distribution to FedoraImmutable.  Add test cases for Onyx, Sericea and Silverblue.  Rename upgrade method to match distribution.

Fixes #637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant