I am not able to install easy_install in my ubuntu
i have to install Review board in ubuntu, i tried following commands but i am getting error
sudo apt-get install python-setuptools.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
Then i tried below command but for this also i am getting error message:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
What should i do? Please help me out!!!!!
apt python
add a comment |
i have to install Review board in ubuntu, i tried following commands but i am getting error
sudo apt-get install python-setuptools.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
Then i tried below command but for this also i am getting error message:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
What should i do? Please help me out!!!!!
apt python
add a comment |
i have to install Review board in ubuntu, i tried following commands but i am getting error
sudo apt-get install python-setuptools.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
Then i tried below command but for this also i am getting error message:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
What should i do? Please help me out!!!!!
apt python
i have to install Review board in ubuntu, i tried following commands but i am getting error
sudo apt-get install python-setuptools.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
Then i tried below command but for this also i am getting error message:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
What should i do? Please help me out!!!!!
apt python
apt python
edited Sep 27 '13 at 13:49
M.Tarun
3,45162562
3,45162562
asked Sep 26 '13 at 12:41
swatiswati
41112
41112
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Open a terminal by pressing Ctrl+Alt+T and type the following:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptools
Reasons behind the errors
Error1:
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.
Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
Error2:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
This means that you are not the root user.So we use sudo
to execute it as root
Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– swati
Sep 26 '13 at 13:44
Which version of ubuntu are you using?
– M.Tarun
Sep 27 '13 at 12:11
This answer is no longer valid. easy_install has been removed frompython-setuptools
: askubuntu.com/a/1052682/519931
– Pedro Gordo
Sep 23 '18 at 11:11
add a comment |
Please don't use easy_install
, but try pip
instead.
sudo apt-get install python-pip
Now you can use it in almost the same way as easy_install
, but with better package management.
sudo pip install <pypi-package>
After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip
– swati
Sep 26 '13 at 13:47
Some reasons why you should use pip: stackoverflow.com/questions/3220404/…
– Javier Rivera
Sep 27 '13 at 6:39
add a comment |
The answer to your second issue (could not open lock file) you find here.
add a comment |
if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running
sudo apt install python3-pip
and then install the required package via
pip install <desired-package>
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f350312%2fi-am-not-able-to-install-easy-install-in-my-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Open a terminal by pressing Ctrl+Alt+T and type the following:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptools
Reasons behind the errors
Error1:
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.
Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
Error2:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
This means that you are not the root user.So we use sudo
to execute it as root
Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– swati
Sep 26 '13 at 13:44
Which version of ubuntu are you using?
– M.Tarun
Sep 27 '13 at 12:11
This answer is no longer valid. easy_install has been removed frompython-setuptools
: askubuntu.com/a/1052682/519931
– Pedro Gordo
Sep 23 '18 at 11:11
add a comment |
Open a terminal by pressing Ctrl+Alt+T and type the following:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptools
Reasons behind the errors
Error1:
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.
Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
Error2:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
This means that you are not the root user.So we use sudo
to execute it as root
Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– swati
Sep 26 '13 at 13:44
Which version of ubuntu are you using?
– M.Tarun
Sep 27 '13 at 12:11
This answer is no longer valid. easy_install has been removed frompython-setuptools
: askubuntu.com/a/1052682/519931
– Pedro Gordo
Sep 23 '18 at 11:11
add a comment |
Open a terminal by pressing Ctrl+Alt+T and type the following:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptools
Reasons behind the errors
Error1:
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.
Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
Error2:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
This means that you are not the root user.So we use sudo
to execute it as root
Open a terminal by pressing Ctrl+Alt+T and type the following:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptools
Reasons behind the errors
Error1:
Package python-setuptools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-setuptools has no installation candidate
This happens when you are trying to install a package about which APT does not have any idea. When you add software sources and then do an apt-get update your system APT's database is updated with all the packages on the repositories listed in software sources list.
Then when you try to install any package, apt checks the package name in it's database, finds it and checks the name of the repo from where it got it. It then downloads the package from that repo.
Error2:
apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
This means that you are not the root user.So we use sudo
to execute it as root
answered Sep 26 '13 at 12:57
M.TarunM.Tarun
3,45162562
3,45162562
Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– swati
Sep 26 '13 at 13:44
Which version of ubuntu are you using?
– M.Tarun
Sep 27 '13 at 12:11
This answer is no longer valid. easy_install has been removed frompython-setuptools
: askubuntu.com/a/1052682/519931
– Pedro Gordo
Sep 23 '18 at 11:11
add a comment |
Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– swati
Sep 26 '13 at 13:44
Which version of ubuntu are you using?
– M.Tarun
Sep 27 '13 at 12:11
This answer is no longer valid. easy_install has been removed frompython-setuptools
: askubuntu.com/a/1052682/519931
– Pedro Gordo
Sep 23 '18 at 11:11
Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– swati
Sep 26 '13 at 13:44
Even after typing the above commands i am getting same error message. E: Package python-setuptools has no installation candidate. After using sudo apt-get upgrade: testpc1@ubuntu:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
– swati
Sep 26 '13 at 13:44
Which version of ubuntu are you using?
– M.Tarun
Sep 27 '13 at 12:11
Which version of ubuntu are you using?
– M.Tarun
Sep 27 '13 at 12:11
This answer is no longer valid. easy_install has been removed from
python-setuptools
: askubuntu.com/a/1052682/519931– Pedro Gordo
Sep 23 '18 at 11:11
This answer is no longer valid. easy_install has been removed from
python-setuptools
: askubuntu.com/a/1052682/519931– Pedro Gordo
Sep 23 '18 at 11:11
add a comment |
Please don't use easy_install
, but try pip
instead.
sudo apt-get install python-pip
Now you can use it in almost the same way as easy_install
, but with better package management.
sudo pip install <pypi-package>
After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip
– swati
Sep 26 '13 at 13:47
Some reasons why you should use pip: stackoverflow.com/questions/3220404/…
– Javier Rivera
Sep 27 '13 at 6:39
add a comment |
Please don't use easy_install
, but try pip
instead.
sudo apt-get install python-pip
Now you can use it in almost the same way as easy_install
, but with better package management.
sudo pip install <pypi-package>
After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip
– swati
Sep 26 '13 at 13:47
Some reasons why you should use pip: stackoverflow.com/questions/3220404/…
– Javier Rivera
Sep 27 '13 at 6:39
add a comment |
Please don't use easy_install
, but try pip
instead.
sudo apt-get install python-pip
Now you can use it in almost the same way as easy_install
, but with better package management.
sudo pip install <pypi-package>
Please don't use easy_install
, but try pip
instead.
sudo apt-get install python-pip
Now you can use it in almost the same way as easy_install
, but with better package management.
sudo pip install <pypi-package>
answered Sep 26 '13 at 12:48
TimoTimo
4,1841924
4,1841924
After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip
– swati
Sep 26 '13 at 13:47
Some reasons why you should use pip: stackoverflow.com/questions/3220404/…
– Javier Rivera
Sep 27 '13 at 6:39
add a comment |
After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip
– swati
Sep 26 '13 at 13:47
Some reasons why you should use pip: stackoverflow.com/questions/3220404/…
– Javier Rivera
Sep 27 '13 at 6:39
After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip
– swati
Sep 26 '13 at 13:47
After running above command i am getting below error message: testpc1@ubuntu:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package python-pip
– swati
Sep 26 '13 at 13:47
Some reasons why you should use pip: stackoverflow.com/questions/3220404/…
– Javier Rivera
Sep 27 '13 at 6:39
Some reasons why you should use pip: stackoverflow.com/questions/3220404/…
– Javier Rivera
Sep 27 '13 at 6:39
add a comment |
The answer to your second issue (could not open lock file) you find here.
add a comment |
The answer to your second issue (could not open lock file) you find here.
add a comment |
The answer to your second issue (could not open lock file) you find here.
The answer to your second issue (could not open lock file) you find here.
answered Sep 26 '13 at 12:59
zwetszwets
8,32922340
8,32922340
add a comment |
add a comment |
if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running
sudo apt install python3-pip
and then install the required package via
pip install <desired-package>
add a comment |
if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running
sudo apt install python3-pip
and then install the required package via
pip install <desired-package>
add a comment |
if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running
sudo apt install python3-pip
and then install the required package via
pip install <desired-package>
if you are using python3 virualenv for installing the desired package via easy_install, try installing python3-pip first by running
sudo apt install python3-pip
and then install the required package via
pip install <desired-package>
edited Feb 20 at 5:35
answered Feb 19 at 10:51
Avin MathewAvin Mathew
12
12
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f350312%2fi-am-not-able-to-install-easy-install-in-my-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown