skylight_12
New Member
Hey everyone!
I am trying to install a bunch of .deb packages (local ones that I 100% trust) from a USB to Ubuntu 22.04 (server not desktop so the tty1 console is what i am working with). I mounted the USB to a specific directory (created with mkdir command) and tried using:
sudo apt install -y --no-install-recommends /path/to/usb/directory/with/packages/*.deb
and my output is saying:
Reading package lists... Done
Building dependency tree...Done
Reading state information... Done
Note, selecting 'package-x' instead of '/path/to/usb/directory/with/packages/package-x.deb'
..... (this outputs for all 42 .deb packages)
Some packages could not be installed. [...]
The following information may help to resolve the situation:
(tells me there is an unmet dependency which "is to be installed" followed by E: Unable to correct problems, you have held broken packages).
Can anyone guide me on what I am doing wrong or how it should be done to correctly install all the .deb packages that are located in the usb drive (local folder) because all the dependencies are there?
I have tried to follow: https://askubuntu.com/questions/170348/how-to-create-a-local-apt-repository but still do not get them installed. I am trying to avoid sudo dpkg -i, doing it manually, since I read that it skips dependency checking unlike apt-get/apt.
Thank you in advance community!
I am trying to install a bunch of .deb packages (local ones that I 100% trust) from a USB to Ubuntu 22.04 (server not desktop so the tty1 console is what i am working with). I mounted the USB to a specific directory (created with mkdir command) and tried using:
sudo apt install -y --no-install-recommends /path/to/usb/directory/with/packages/*.deb
and my output is saying:
Reading package lists... Done
Building dependency tree...Done
Reading state information... Done
Note, selecting 'package-x' instead of '/path/to/usb/directory/with/packages/package-x.deb'
..... (this outputs for all 42 .deb packages)
Some packages could not be installed. [...]
The following information may help to resolve the situation:
(tells me there is an unmet dependency which "is to be installed" followed by E: Unable to correct problems, you have held broken packages).
Can anyone guide me on what I am doing wrong or how it should be done to correctly install all the .deb packages that are located in the usb drive (local folder) because all the dependencies are there?
I have tried to follow: https://askubuntu.com/questions/170348/how-to-create-a-local-apt-repository but still do not get them installed. I am trying to avoid sudo dpkg -i, doing it manually, since I read that it skips dependency checking unlike apt-get/apt.
Thank you in advance community!