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
4,921 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
answered Jul 30, 2019 by Vinci

Related Questions In Linux Administration

–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,130 points
540 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 12, 2019 in Linux Administration by ajs3033
• 7,280 points
1,622 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 4, 2019 in Linux Administration by Upasana
• 8,620 points
4,673 views
0 votes
1 answer

HTTP POST and GET using cURL

You can just add | grep }| ...READ MORE

answered Jul 22, 2019 in Linux Administration by Upasana
• 8,620 points
277 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
241 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
479 views
0 votes
2 answers

Install postgreSQL on Ubuntu

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

answered Nov 11, 2020 in Database by Prachi
• 140 points
215 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 13, 2019 in Linux Administration by Yesha
3,264 views
0 votes
1 answer

Argument receiving error for rm command

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

answered Jun 7, 2019 in Linux Administration by Shubham
• 13,460 points
133 views