apt-get update takes no argument

0 votes

I am trying this command 

#sudo apt-get update python 

it is showing me this below line:

E: the update command takes no argument.
Jul 30, 2019 in Linux Administration by Chris
22,804 views

1 answer to this question.

0 votes

The command 

sudo apt-get update

is used to update the package list with the latest available package version. To upgrade a particular (python, in this case), use the below command:

sudo apt-get upgrade


Hope this helps you!

To learn more about Linux, it's recommended to join Linux course online today.

Thanks.

answered Jul 30, 2019 by Vinci

Related Questions In Linux Administration

0 votes
1 answer

Amazon Linux: apt-get: command not found

Amazon Linux is CentOs-based which means that ...READ MORE

answered Feb 11, 2022 in Linux Administration by Soham
• 9,710 points
2,571 views
–1 vote
1 answer

How to get octal file permission in linux?

You can use this: stat -c "%a %n" ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,220 points
2,516 views
0 votes
1 answer

Adding yes/no/cancel prompts in shell script

You can use the read command. Here's ...READ MORE

answered Mar 13, 2019 in Linux Administration by ajs3033
• 7,300 points
4,201 views
0 votes
1 answer

Cannot understand this "No X11 DISPLAY variable" error thrown at me

If you're on the main display, then export ...READ MORE

answered Jun 5, 2019 in Linux Administration by Upasana
• 8,620 points
10,712 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,153 views
0 votes
1 answer

Error when trying to install a few packages on ubuntu

Try executing the following commands and try ...READ MORE

answered Mar 15, 2019 in Linux Administration by Jobin
1,575 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,221 views
0 votes
1 answer

Error saying " Invalid operation uninstall" on sudo apt uninstall apache2

Try this: sudo apt-get cpufrequtils is missing a mandatory ...READ MORE

answered May 14, 2019 in Linux Administration by Yesha
14,697 views
0 votes
1 answer

Argument receiving error for rm command

Bash actually expands the asterisk to every ...READ MORE

answered Jun 8, 2019 in Linux Administration by Shubham
• 13,490 points
1,001 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP