udev package has unmet dependencies

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
taklumint
Level 1
Level 1
Posts: 2
Joined: Sun Apr 11, 2021 7:38 am

udev package has unmet dependencies

Post by taklumint »

Ive just installed a fresh version of Linux Mint 20.1 and I let the update manager run and do its thing after a restart I get a message saying I have one broken package, after checking I find that its the "udev" package which depends on libudev1 then I tried the following commands and got the following results and haven't messed with anything

Code: Select all

sudo apt-get install --fix-broken 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  udev
The following packages will be upgraded:
  udev
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,366 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.6 [1,366 kB]
Err:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.6
  Hash Sum mismatch
  Hashes of expected file:
   - SHA512:fa455a7a972069fdeb2697d30c989cf9cb4a65252f705f8e521f2b822fe0d4aa68a5fd87ea7d26fc5a409620d1425feef9074db40d090da7805f34590064cd90
   - SHA256:076f21fe3ae36c3b7d03def6f9f3fd6a3ea8b7f40ddc1620aa394d47a0dfdbf3
   - SHA1:b150d2ca9a3ce9003b7d5a3329bb19f71fc0f30a [weak]
   - MD5Sum:23d0b4bcc3dc64619013c3997f8cadc4 [weak]
   - Filesize:1365912 [weak]
  Hashes of received file:
   - SHA512:a21542f8e6716fc4b999d03be30785df6c328c1aeceb359a870be788ab36b556b218f7ccedf3b0598d64d74666e3500958fec275cf780999535e0bc6ea5ba36f
   - SHA256:02ad76f4c377ef33a29925a80a07166bcd6c59883f949a3026d5c61b54c7dab4
   - SHA1:e4511ac1df0b75e4472677c8eccd9536afe18d39 [weak]
   - MD5Sum:e034ee5e7f9132267b63bd4a17d050e5 [weak]
   - Filesize:1365912 [weak]
  Last modification reported: Mon, 29 Mar 2021 09:43:43 +0000
Fetched 1,366 kB in 1s (1,074 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.6_amd64.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA512:fa455a7a972069fdeb2697d30c989cf9cb4a65252f705f8e521f2b822fe0d4aa68a5fd87ea7d26fc5a409620d1425feef9074db40d090da7805f34590064cd90
    - SHA256:076f21fe3ae36c3b7d03def6f9f3fd6a3ea8b7f40ddc1620aa394d47a0dfdbf3
    - SHA1:b150d2ca9a3ce9003b7d5a3329bb19f71fc0f30a [weak]
    - MD5Sum:23d0b4bcc3dc64619013c3997f8cadc4 [weak]
    - Filesize:1365912 [weak]
   Hashes of received file:
    - SHA512:a21542f8e6716fc4b999d03be30785df6c328c1aeceb359a870be788ab36b556b218f7ccedf3b0598d64d74666e3500958fec275cf780999535e0bc6ea5ba36f
    - SHA256:02ad76f4c377ef33a29925a80a07166bcd6c59883f949a3026d5c61b54c7dab4
    - SHA1:e4511ac1df0b75e4472677c8eccd9536afe18d39 [weak]
    - MD5Sum:e034ee5e7f9132267b63bd4a17d050e5 [weak]
    - Filesize:1365912 [weak]
   Last modification reported: Mon, 29 Mar 2021 09:43:43 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Code: Select all

sudo apt clean && apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 udev : Depends: libudev1 (= 245.4-4ubuntu3.3) but 245.4-4ubuntu3.6 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Code: Select all

sudo apt-get install libudev1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libudev1 is already the newest version (245.4-4ubuntu3.6).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 udev : Depends: libudev1 (= 245.4-4ubuntu3.3) but 245.4-4ubuntu3.6 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
The part that confuses me is that "Depends: libudev1 (= 245.4-4ubuntu3.3) but 245.4-4ubuntu3.6 is installed"
Any help would be appreciated.
Thank you for reading, hope you have a great day!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
taklumint
Level 1
Level 1
Posts: 2
Joined: Sun Apr 11, 2021 7:38 am

Re: udev package has unmet dependencies

Post by taklumint »

Ok.
Nevermind I guess.. i fixed it by installing the latest version rather than updating it? idk?
but i just tried

Code: Select all

sudo apt install udev
and it worked.

gl hf <3
Locked

Return to “Beginner Questions”