LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2022, 01:35 AM   #1
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 200

Rep: Reputation: Disabled
How can I find out the correct order of installation beforehand?


Code:
sudo apt-get --download-only install com.picpick.deepin --no-install-recommends
On 2022-09-27, I ran the above to download a number of packages and then manually installed them. When the following one was being installed, I noticed that some utilities were removed.

libavutil56_7%3a4.4.2-1_i386.deb

On completion, I found that I could not open any folders because File Manager no longer existed. Then, I rebooted my PC, which failed to boot into Linux.

On 2022-09-28, I reinstalled Linux.
On 2022-09-29, I ran the following to install PicPick.
Code:
sudo apt-get install com.picpick.deepin --no-install-recommends
A number of packages, including the following one, were downloaded and installed automatically.

libavutil56_7%3a4.4.2-1_i386.deb

This time, no utilities were removed. Now, everything works fine.

I suspect that the accidental removals happened on 2022-09-27 because the packages were installed in an incorrect order.
On 2022-09-29, during the automatic installation, Terminal showed the correct order .

Is it possible to find out the correct order without performing automatic installation?
The attached file shows the details of the said automatic installation.
Attached Files
File Type: txt Terminal output.txt (51.0 KB, 1 views)
 
Old 09-29-2022, 02:25 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,989

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
apt automatically handle dependencies - if possible.
When you download the package and install manually (with dpkg) this dependency checking is skipped (because you did not call apt install). dpkg cannot download and install all the dependencies.
I don't know why was that libavutil uninstalled.
 
1 members found this post helpful.
Old 09-29-2022, 06:01 AM   #3
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 200

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I don't know why was that libavutil uninstalled.
"libavutil" was not uninstalled. It somewhat removed utilities from the system.
 
Old 09-29-2022, 06:08 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,659
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
The way apt works is: if something is removed and it had something else dependent on it, that gets removed too because its dependencies are no longer satisfied. And any other dependencies of that second package which weren't installed explicitly but just came along for the ride are also removed. You can lose quite a lot of software that way!

The solution is always to check carefully the list of packages that are going to be removed before saying yes.

Last edited by hazel; 09-29-2022 at 06:09 AM.
 
Old 10-14-2022, 01:48 AM   #5
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 200

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
apt automatically handle dependencies - if possible.
When you download the package and install manually (with dpkg) this dependency checking is skipped (because you did not call apt install). dpkg cannot download and install all the dependencies.
I don't know why was that libavutil uninstalled.
I just found that apt-get install will install the required packages from “/var/cache/apt/archives/” without Internet connection as long as the packages already exist there. Next time, I may just copy the backups into "/archives/" and run apt-get install, which will conceivably install the dependencies in the correct order.
 
Old 10-14-2022, 02:15 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,989

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Quote:
Originally Posted by Matthew Wai View Post
I just found that apt-get install will install the required packages from “/var/cache/apt/archives/” without Internet connection as long as the packages already exist there. Next time, I may just copy the backups into "/archives/" and run apt-get install, which will conceivably install the dependencies in the correct order.
you might want to use apt download option to download.
 
Old 10-14-2022, 02:27 AM   #7
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 200

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you might want to use apt download option to download.
I want to use "apt-get --download-only install" in combination with "--no-install-recommends".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
will the Fedora installer use file structure partitions made beforehand? frankfenderbender Fedora - Installation 2 11-06-2019 04:40 PM
Logi Sales Manager on Ncurses (invoice, invoicing, orders, order, sale order, sales order...)? Xeratul Linux - Software 0 03-25-2017 02:45 PM
[SOLVED] Any way to know beforehand if SUDO is (going to be) needed? courteous Linux - Newbie 4 12-12-2010 11:53 PM
Speeding up loading a program by running it beforehand jago25_98 Linux - Software 3 01-11-2004 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration