AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1394105
Accepted
Dan
Dan
Asked: 2022-02-22 01:03:18 +0800 CST2022-02-22 01:03:18 +0800 CST 2022-02-22 01:03:18 +0800 CST

Como posso atualizar o firmware do meu dispositivo a partir da linha de comando?

  • 772

Raramente uso o aplicativo Ubuntu Software, mas quando o abri hoje vi que tem uma notificação dizendo que o firmware do meu scanner de impressão digital pode ser atualizado.

Atualizações do centro de software

No entanto, os comandos apt upgradee snap refreshindicam que tudo está atualizado. Estou perdendo uma terceira fonte de pacotes no meu sistema?

danny@danny:~$ sudo apt update && sudo apt upgrade 
Hit:1 http://se.archive.ubuntu.com/ubuntu impish InRelease
Hit:2 http://se.archive.ubuntu.com/ubuntu impish-updates InRelease                                                                                                                                         
Hit:3 http://se.archive.ubuntu.com/ubuntu impish-backports InRelease                                                                                                                                       
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                              
Hit:5 https://download.docker.com/linux/ubuntu impish InRelease                                                                                                                                  
Hit:6 http://archive.canonical.com/ubuntu impish InRelease                                                                
Get:7 http://security.ubuntu.com/ubuntu impish-security InRelease [110 kB]                          
Hit:8 https://packages.microsoft.com/repos/ms-teams stable InRelease                     
Fetched 110 kB in 1s (127 kB/s)                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
package-management
  • 1 1 respostas
  • 1615 Views

1 respostas

  • Voted
  1. Best Answer
    Dan
    2022-02-22T08:49:34+08:002022-02-22T08:49:34+08:00

    Graças aos comentários de @Ponjar e @oldfred , acontece que há outro gerenciador que gerencia as atualizações de firmware do dispositivo chamado fwupd.

    Versão curta

    Para atualizar o firmware do dispositivo, você pode executar o seguinte comando:

    $ fwupdmgr update
    

    Versão mais longa

    Nota: Nenhum dos comandos mencionados aqui exigiu acesso root (ou seja, sudo) para ser executado durante meus testes. Até o comando que atualiza o firmware.

    Isso usa LVFS (Linux Vendor Firmware Service) como seu banco de dados de origem para o firmware dos dispositivos. Você pode adicionar mais fontes configurando-as em /etc/fwupd/remotes.d/.

    Para atualizar o firmware, você pode usar o fwupdmgrcomando. O pacote parece estar pré-instalado no Ubuntu 21.10. Se não for para você, você pode instalá-lo com o seguinte comando

    sudo apt install fwupd
    

    Você pode obter uma lista de dispositivos que suportam atualizações de firmware fwupdmgrexecutando o fwupdmgr get-devicescomando.

    $ fwupdmgr get-devices
    WARNING: UEFI capsule updates not available or enabled in firmware setup
      See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
    21A0000CMX
    │
    ├─Prometheus:
    │     Device ID:          96a0be68fa5cf5d60d3d2d392797c6844ab64d33
    │     Summary:            Fingerprint reader
    │     Current version:    10.01.3273255
    │     Vendor:             Synaptics (USB:0x06CB)
    │     Install Duration:   2 seconds
    │     GUIDs:              09e8bf16-3e69-50f5-bb66-c7a040248352
    │                         8088f861-6318-5b1e-9ce4-fbddbedb09ac
    │     Device Flags:       • Updatable
    │                         • Supported on remote server
    │                         • Cryptographic hash verification is available
    │   
    ├─UEFI dbx:
    │     Device ID:          362301da643102b9f38477387e2193e57abaa590
    │     Summary:            UEFI Revocation Database
    │     Current version:    267
    │     Minimum Version:    267
    │     Vendor:             UEFI:Linux Foundation
    │     Install Duration:   1 second
    │     GUIDs:              1e9c3d61-4bd9-514e-ad87-0a9b61b9e77d
    │                         304a9ede-aff2-58f6-b5e5-0e651b065f1a
    │                         c6682ade-b5ec-57c4-b687-676351208742
    │                         f8ba2887-9411-5c36-9cee-88995bb39731
    │     Device Flags:       • Internal device
    │                         • Updatable
    │                         • Needs a reboot after installation
    │   
    └─UMIS RPETJ512MGE2QDQ:
          Device ID:          71b677ca0f1bc2c5b804fa1d59e52064ce589293
          Summary:            NVM Express Solid State Drive
          Current version:    1.3Q0630
          Vendor:             Union Memory (Shenzhen) (NVME:0x1CC4)
          GUIDs:              c3fe86aa-308e-53bc-aa93-00faaac3ef75
                              437d6904-49e7-551e-bbe9-1ae691ea1a37
                              6df6872d-19f7-5035-b85c-7c760034c77d
                              1d6b808f-3aac-5c20-8496-8a1433de5b80
                              1cabba58-9014-5a19-b40f-a6aa4b45676f
          Device Flags:       • Internal device
                              • Updatable
                              • System requires external power source
                              • Needs a reboot after installation
                              • Device is usable for the duration of the update
    

    Você também pode obter o status dos dispositivos se eles tiverem uma atualização de firmware disponível executando fwupdmgr get-updates.

    $ fwupdmgr get-updates
    WARNING: UEFI capsule updates not available or enabled in firmware setup
      See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
    Devices with no available firmware updates: 
     • UEFI dbx
     • UMIS RPETJ512MGE2QDQ
    21A0000CMX
    │
    └─Prometheus:
      │   Device ID:          96a0be68fa5cf5d60d3d2d392797c6844ab64d33
      │   Summary:            Fingerprint reader
      │   Current version:    10.01.3273255
      │   Vendor:             Synaptics (USB:0x06CB)
      │   Install Duration:   2 seconds
      │   GUIDs:              09e8bf16-3e69-50f5-bb66-c7a040248352
      │                       8088f861-6318-5b1e-9ce4-fbddbedb09ac
      │   Device Flags:       • Updatable
      │                       • Supported on remote server
      │                       • Cryptographic hash verification is available
      │ 
      └─Prometheus Fingerprint Reader:
            New version:      10.01.3478575
            Remote ID:        lvfs
            Summary:          Firmware for the Synaptics Prometheus Fingerprint Reader device
            License:          Proprietary
            Size:             425.5 kB
            Created:          2021-06-09
            Urgency:          Medium
            Vendor:           Synaptics
            Duration:         2 seconds
            Flags:            is-upgrade
            Description:      
            New features and enhancements:
            
            • Fix an authentication issue on FOP project.
    

    No meu caso, o último comando lista "UEFI dbx" e ​​"UMIS RPETJ512MGE2QDQ" como atualizados e o scanner de impressão digital "Prometheus" tem uma atualização disponível.

    Quando estiver satisfeito, você pode executar o fwupdmgr updatecomando para instalar todas as atualizações disponíveis ou passar manualmente os IDs dos dispositivos que deseja atualizar para esse comando fwupdmgr update 71b677ca0f1bc2c5b804fa1d59e52064ce589293.

    $ fwupdmgr update
    WARNING: UEFI capsule updates not available or enabled in firmware setup
      See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
    Devices with no available firmware updates: 
     • UEFI dbx
     • UMIS RPETJ512MGE2QDQ
    Upgrade available for Prometheus from 10.01.3273255 to 10.01.3478575
    Prometheus and all connected devices may not be usable while updating. Continue with update? [Y|n]: 
    Downloading…             [***************************************] Less than one minute remaining…
    Decompressing…           [***************************************]
    Authenticating…          [***************************************]
    Authenticating…          [***************************************]
    Updating Prometheus…     [***************************************]
    Restarting device…       [***************************************]
    Successfully installed firmware
    

    Opcionalmente, quando terminar de atualizar o firmware, você pode executar fwupdmgr get-updates, e ele perguntará se você deseja fazer upload do relatório de firmware.

    $ fwupdmgr get-updates
    WARNING: UEFI capsule updates not available or enabled in firmware setup
      See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
    Devices with no available firmware updates: 
     • UEFI dbx
     • UMIS RPETJ512MGE2QDQ
    Devices with the latest available firmware version:
     • Prometheus
    ________________________________________________
    
    Devices that have been updated successfully:
    
     • Prometheus (10.01.3273255 → 10.01.3478575)
    
    Uploading firmware reports helps hardware vendors to quickly identify failing and successful updates on real devices.
    Upload report now? (Requires internet connection):
    0.  Do not upload reports at this time, but prompt again for future updates
    1.  Do not upload reports, and never ask to upload reports for future updates
    2.  Upload reports just this one time, but prompt again for future updates
    3.  Upload reports this time and automatically upload reports after completing future updates
    2
    Target:                  https://fwupd.org/lvfs/firmware/report
    Payload:                 {
                               "ReportVersion" : 2,
                               "MachineId" : "fd438561a796bdbcccfc66169378030058c8a453066843b91fa6b107cd73c267",
                               "Metadata" : {
                                 "DistroId" : "ubuntu",
                                 "DistroVersion" : "21.10"
                               },
                               "Reports" : [
                                 {
                                   "Checksum" : "9e3cc95de4a157318c40135009249bb20fe6af7d",
                                   "UpdateState" : 2,
                                   "Guid" : [
                                     "09e8bf16-3e69-50f5-bb66-c7a040248352"
                                   ],
                                   "Plugin" : "synaptics_prometheus",
                                   "VersionOld" : "10.01.3273255",
                                   "VersionNew" : "10.01.3478575",
                                   "Flags" : 37748770,
                                   "Created" : 1645459678,
                                   "Modified" : 1645460476,
                                   "Metadata" : {
                                     "HostSku" : "LENOVO_MT_21A0_BU_Think_FM_ThinkPad P14s Gen 2a",
                                     "RuntimeVersion(org.freedesktop.gusb)" : "0.3.5",
                                     "CompileVersion(com.redhat.fwupdate)" : "12",
                                     "DistroVersion" : "21.10",
                                     "CompileVersion(org.freedesktop.fwupd)" : "1.5.11",
                                     "HostFamily" : "ThinkPad P14s Gen 2a",
                                     "KernelName" : "Linux",
                                     "RuntimeVersion(org.kernel)" : "5.13.0-28-generic",
                                     "CompileVersion(org.freedesktop.gusb)" : "0.3.5",
                                     "RuntimeVersion(com.dell.libsmbios)" : "2.4",
                                     "DistroId" : "ubuntu",
                                     "CpuArchitecture" : "x86_64",
                                     "BootTime" : "1645105544",
                                     "HostVendor" : "LENOVO",
                                     "RuntimeVersion(org.freedesktop.appstream-glib)" : "0.7.14",
                                     "HostProduct" : "21A0000CMX",
                                     "RuntimeVersion(com.redhat.fwupdate)" : "12",
                                     "RuntimeVersion(org.freedesktop.fwupd)" : "1.5.11",
                                     "KernelVersion" : "5.13.0-28-generic"
                                   }
                                 }
                               ]
                             }
    Proceed with upload? [Y|n]: 
    Idle…                    [***************************************]
    Successfully uploaded 1 report
    No updates available for remaining devices
    
    • 4

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve