Apt get install dist upgrade
Yes, I'm sure. You previously marked this answer as accepted. Are you sure you want to unaccept it? DigitalOcean home.
Community Control Panel. Hacktoberfest Contribute to Open Source. Posted February 8, I did a sudo apt-get upgrade on a fresh Ubuntu Setting up grub2-common 1. Setting up grub-pc-bin 1. Setting up grub-pc 1. This is a BAD idea.. However it completed without errors and I rebooted - the VPS seems to be running fine.
Was that really a bad idea or not? What are best practices with regard to apt-get upgrade and dist-upgrade? I saw a similar question but it wasn't related to real GRUB warnings. Add a comment. Subscribe Subscribed. As for apt full-upgrade and apt-get dist-upgrade it's the same command. But again apt is the newer command. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 5 years, 8 months ago. Active 1 month ago. Viewed k times.
In accordance with man pages: apt has parameter full-upgrade apt-get has parameter dist-upgrade. Are both the same command? Improve this question. The officially recommended command for Ubuntu Compare help. Add a comment. Active Oldest Votes. Improve this answer. Oreo 4 4 bronze badges. Why create confusion with a new name that does the same thing?
You can do either apt dist-upgrade I just tried it or you can do apt full-upgrade and you are saying they do the same thing. It's the same function. It's just an alias in apt for the apt-get command. Create a free Team What is Teams? Learn more. Interrupting apt-get dist-upgrade: what could happen? Ask Question. Asked 9 years, 5 months ago. Active 9 years, 5 months ago. Viewed 7k times. Let's suppose I ssh into my computer and run sudo apt-get dist-upgrade and, while apt-get is running and installing the packages, another person who is sitting at the terminal and logged into gnome decides to shut-down the computer via the GUI.
Improve this question. Add a comment. Active Oldest Votes. When the prompt appears, start by making sure that all currently installed programs are configured: dpkg --configure -a This may take a long time, depending on how many programs were installed before the system stopped. Then go ahead and update the current list of packages: apt-get update Following this, upgrade the software on the system: apt-get upgrade This last step, again, may take a long time to complete.
Use a command like this one to install these packages: apt-get install some-package some-other-package You may have to repeat this more than once until all of the packages have been installed and none are held back. Then, you should repeat the update and upgrade in order to completely verify that the system is as updated as it can be: apt-get update apt-get upgrade These last commands should execute quickly, as everything is probably complete — however, it is not impossible that the upgrades would have affected something that requires another upgrade.
At a command shell, enter this command to remove unneeded software: apt-get autoremove Source. Improve this answer. LnxSlck LnxSlck This might be a totally new question but is there a easy way to fix it? Like some restore command? I've updated my answer to include that — LnxSlck.
0コメント