Closed LokiMetaSmith closed 1 year ago
Ubuntu doesn't list polkit
https://packages.ubuntu.com/search?keywords=polkit&searchon=names&suite=kinetic§ion=all
Thanks for letting me know, is probably got a different package name, I'll update it soon
I think libpolkit-agent-1-0 is the right package. Ill update that so the next release uses the correct version. Until that goes through you can use the generic tarball as it doesn't handle deps..
Ubuntu 20.04 problem still here
Working on updating a Pinecil v1.
Mint 21 (Vanessa) has this identical message. polkitd & libpolkit-agent-1-0 are all current with v0.105-33 . sudo dpkg -i ./pineflash_0.5.0_amd64.deb
refused to install by throwing the polkit missing.
Determined to make it work, I downloaded the pineflash_0.5.0_amd64.tar.xz .
Running it as myself, everything works until it asks for my password for sudo, then it fails. The GUI stayed up, but threw a message it failed to flash.
If I sudo ./pineflash
, it launches I select Pinecil v1 then firmware 2.21, then it crashes. I didn't even get to the point to connect my pinecel.
$ sudo ./pineflash
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', src/main.rs:286:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'The Promise Sender was dropped', /home/spagett/.cargo/registry/src/github.com-1ecc6299db9ec823/poll-promise-0.2.0/src/promise.rs:337:25
same thing with backtrace:
sudo RUST_BACKTRACE=1 ./pineflash
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', src/main.rs:286:55
stack backtrace:
0: rust_begin_unwind
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/panicking.rs:64:14
2: core::result::unwrap_failed
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/result.rs:1790:5
3: core::ops::function::FnOnce::call_once{{vtable.shim}}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'main' panicked at 'The Promise Sender was dropped', /home/spagett/.cargo/registry/src/github.com-1ecc6299db9ec823/poll-promise-0.2.0/src/promise.rs:337:25
stack backtrace:
0: rust_begin_unwind
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/panicking.rs:64:14
2: poll_promise::promise::Promise<T>::ready
3: <pineflash::Flasher as eframe::epi::App>::update
4: eframe::native::epi_integration::EpiIntegration::update
5: <eframe::native::run::glow_integration::GlowWinitApp as eframe::native::run::WinitApp>::paint
6: eframe::native::run::run_and_return::{{closure}}
7: winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration
8: winit::platform_impl::platform::x11::EventLoop<T>::run_return
9: eframe::native::run::run_and_return
10: std::thread::local::LocalKey<T>::with
11: eframe::native::run::glow_integration::run_glow
12: eframe::run_native
13: pineflash::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
let me know if you want the full backtrace
Update: there may be something else going on. Trying to use the latest dfu-util also failed. My pinecil1 (fw 2.13) shows the expected USB address in dmesg & lsusb. However dfu-util throws an error it cannot write the firmware as myself, sudo, nor root user. dmesg then has a message about unable to open and write to the disk. Hrm. I'll have to mess with it later.
This should be fixed now, if the problems persist feel free to reopen the issue
The following packages have unmet dependencies: pineflash : Depends: polkit but it is not installable E: Unable to correct problems, you have held broken packages.
polkitd is installed, so not sure why it's an unmet dependency.