Is a virtualenv required for making a new sysadmin user after installing ckan from package? - ubuntu-14.04

I just installed ckan from package on my local machine. How can I create a new sysadmin user for my instance? How can the paster commands be run without a virtual environment. The docs did not state the requirement of a virtual env for installing ckan from package.
Also when I run the following command:
paster sysadmin add seanh -c /etc/ckan/default/production.ini
The terminal asks me to get python-pastescript. And when I execute the command "sudo apt-get install python-pastescript", I get the following result:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-pastescript : Depends: python-setuptools but it is not going to be installed or
python-distribute
E: Unable to correct problems, you have held broken packages.
Help needed please.

Since you installed CKAN from package I believe you need to use sudo ckan instead of paster in all paster commands.
e.g.
sudo ckan sysadmin add seanh -c /etc/ckan/default/production.ini

Related

nautilus-terminal error due to gir1.2-vte-2.90

I like the idea of having a terminal connected to my nautilus file manager.
There is a package called nautilus-terminal which does this.
if I try to install it via sudo apt-get install nautilus-terminal I get the following error message:
The following packages have unmet dependencies:
nautilus-terminal : Depends: gir1.2-vte-2.90 but it is not installable
E: Unable to correct problems, you have held broken packages.
If I try to install it via sudo apt-get install gir1.2-vte-2.90
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gir1.2-vte-2.90 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 'gir1.2-vte-2.90' has no installation candidate
Does anybody know how to solve this?
This problem is because you already have gir1.2-vte-2.91 installed on your ubuntu but since the package name contains version number, it's not recognized as a higher version of gir1.2-vte-2.90 so you just need to provide a package with the name gir1.2-vte-2.90 and connect it to gir1.2-vte-2.91. This can be easily done by following the instructions of this answer.

"Broken packages" do not let me install packages

I'm having some problems trying to setup a mjpg-streamer in my raspberry pi running raspbian. When I was trying to install the package, the following error was appearing:
sudo apt-get install libjpeg-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libjpeg8-dev' instead of 'libjpeg-dev'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libjpeg8-dev : Depends: libjpeg8 (= 8d-1+deb7u1) but 8d1-2 is to be installed
E: Unable to correct problems, you have held broken packages.
I've looked a lot of suggestions on google, and tried things like apt-get update and dpkg --get-selections | grep hold (nothing shows up). I really tried a lot of stuff, with no luck.
Do anyone have any suggestion on what to do?
Thanks everyone
As been said, it is a dependency problem, to solve it you can use aptitude.
To install aptitude:
sudo apt-get install aptitude
To use aptitude:
sudo aptitude install package_name-normaly_dev

Can't install mono-gmcs package

I am trying to install the mono-gmcs package on my virtual machine running Kali Linux, but receive the output
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mono-gmcs : Depends: mono-mcs (= 3.12.1-0xamarin1) but 4.0.4.1-0xamarin1 is to be installed
E: Unable to correct problems, you have held broken packages.
I am using the command sudo apt-get install mono-gmcs to install it.
It says, that mono-gmcs depends on mono-mcs (3.12.1-0xamarin1), which currently is installed via 4.0.4.1-0xamarin1. You have versions conflict. Downgrading xamarin will solve it sudo apt-get install packagename=version
If you are going to choose Mono 4.* via mono-complete, say goodbye to many old packages such as this one. They are obsolete and you don't need them any more.
The compilers have been unified to a single mcs.
Try this
sudo apt-get install mono-complete=*
It brings the latest version.

package list - linux mint

when i was trying to fix an error in my linux mint, i accidentally, removed package list, now i can't install anything, how can i fix this?
i a beginner with linux..
i'm using linux mint 16 petra Mate edition.
follows the log:
charles#charles /etc/apt $ sudo apt-get install ubuntu-tweak
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ubuntu-tweak : Depends: python-compizconfig but it is not installable
E: Unable to correct problems, you have held broken packages.
How did you remove your package list? You should be able to restore it by finding the official repository list on the Linux Mint site, and then making sure your /etc/apt/sources.list.d/official-package-repositories.list matches what they have.
Firstly, I would run sudo apt-get update though, in order to see what you're missing. That in itself might fix your problem.
Try the following.
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

not able to install samba

I had to uninstall samba, because I had configured it wrong. But now when i try to reinstall it using sudo apt-get install samba smbfs, I get the output:-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package samba 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
However the following packages replace it:
samba-common
Package smbfs 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 'samba' has no installation candidate
E: Package 'smbfs' has no installation candidate
I am nor able to download it via ubuntu Software center.
Any help is appreciated
Thank you
First uninstall it completely
Sudo apt-get autoremove samba4
then reinstall
Sudo apt-get install samba4

Resources