I'm trying to install build-dep on Linux mint 15, but I'm getting an error. I've checked my source list and looks fine. I've also updated the system (apt-get update)
This is the command
apt-get build-dep --no-install-recommends linux-image-$(uname -r)
And this is the error:
Picking 'linux' as source package instead of 'linux-image-3.8.0-19-generic'
E: Unable to find a source package for linux
And this is my source.list:
deb http://archive.getdeb.net/ubuntu raring-getdeb apps games
deb-src http://cran.ms.unimelb.edu.au/bin/linux/ubuntu raring/
deb http://packages.linuxmint.com/ nadia main upstream import
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ quantal partner
deb http://packages.medibuntu.org/ quantal free non-free
# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
# deb http://archive.getdeb.net/ubuntu quantal-getdeb
You are missing the source uri to install the build-dep. Do:
sudo bash -c 'echo "deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r) # or any other package
The kernel is special. Install linux-source; apt-get will default to your current version.
Related
I have a new install of Debian Buster, I downloaded the ProtonVPN CLI package and went to install and got the errors:
E: Unable to locate package protonvpn-stable-release_1.0.0-1_all.deb
E: Couldn't find any package by glob 'protonvpn-stable-release_1.0.0-1_all.deb'
E: Couldn't find any package by regex 'protonvpn-stable-release_1.0.0-1_all.deb'
my /etc/apt/sources.list file looks like this:
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
#deb cdrom:[Debian GNU/Linux 10.10.0 _Buster_ - Official amd64 NETINST 20210619-16:11]/ buster main
deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main
deb http://security.debian.org.debian-security buster/updates main
deb-src http://security.debian.org.debian-security buster/updates main
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster main
I was able to apt-get install wget as well as update and upgrdade. I even tried uncommenting the cdrom lines at the top. I reran apt-get update and apt-get upgrade.
Still, when I try to install the ProtonVPN package I get the above errors.
Note I understand that this is not strictly programming related. If there is a more appropriate stack, please let me know in comments and I will close and post there.
To install manually downloaded Debian package, use dpkg:
dpkg -i protonvpn-stable-release_1.0.0-1_all.deb
If dpkg is complaining about missing dependencies, then use apt-get -f install after running dpkg
I'm trying to install nodejs in Ubuntu, after checking all the missing dependencies I encounter an issue when installing zlib1g-dev, zlib1g is already at 1:1.2.8.dfsg-2ubuntu4.1 :
[pp#src]$ sudo apt-get install zlib1g-dev
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:
zlib1g-dev : **Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4) but 1:1.2.8.dfsg-2ubuntu4.1 is to be installed**
E: Unable to correct problems, you have held broken packages.
[pp#src]$ sudo apt-get install zlib1g
Reading package lists... Done
Building dependency tree
Reading state information... Done
**zlib1g is already the newest version (1:1.2.8.dfsg-2ubuntu4.1)**.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I was able to do the installation with:
sudo apt-get update && sudo sudo apt-get install zlib1g-dev
After updating /etc/apt/sources.list with the following:
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http:// us.archive .ubuntu. com/ubuntu/ xenial main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial main restricted universe multiverse
###### Ubuntu Update Repos
deb http:// us.archive .ubuntu. com/ubuntu/ xenial-security main restricted universe multiverse
deb http://us.archive .ubuntu. com/ubuntu/ xenial-updates main restricted universe multiverse
deb http:// us.archive .ubuntu. com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-proposed main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
I would try a sudo apt-get update to start (sometimes the problem is trivial!).
Consider including the results of dpkg --get-selections | grep hold
in the comments.
Autoremove might help, too!
Finally, trying again with aptitude (https://unix.stackexchange.com/questions/767/what-is-the-real-difference-between-apt-get-and-aptitude-how-about-wajig) might highlight the issue.
Tough to diagnose without more information.
Answer for this is given by SeinopSys in Error installing zlib1g-dev
you need to take note of the required package version (in your case = = 1:1.2.8.dfsg-2ubuntu4), then run the command below to downgrade to that version:
$ sudo apt install zlib1g== 1:1.2.8.dfsg-2ubuntu4
Then you can try re-installing.
I followed this link. But got error, how to fix?
$ sudo apt-get build-dep emacs24
[sudo] password for oracle:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for emacs24
$ cat /etc/apt/sources.list
#deb cdrom:[Linux Mint 17 _Qiana_ - Release amd64 20140530]/ trusty contrib main non-free
deb http://packages.linuxmint.com qiana main upstream import
deb http://extra.linuxmint.com qiana main
deb http://mirror.nexcess.net/ubuntu trusty main restricted universe multiverse
deb http://mirror.nexcess.net/ubuntu trusty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner
Open the software-sources application, and click "Enable source code repositories"
Then try again.
This is from my recipe for Travis CI:
sudo add-apt-repository -y ppa:cassou/emacs
sudo apt-get update -qq
sudo apt-get install -qq emacs24
Might be useful.
I am attempting to install mscorefonts on ec2, however I can't seem to find the magic combination of terminal commands to make it happen. I am using an m1.medium instance and uname -a returns Linux worker 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
On my personal laptop running: sudo apt-get install -y ttf-mscorefonts-installer works fine, however on my ec2 instance I get the following error message:
The following packages have unmet dependencies:
ttf-mscorefonts-installer : Depends: defoma but it is not installable
Recommends: ttf-liberation but it is not installable
Recommends: x-ttcidfont-conf but it is not installable
indeed, I have not been able to find a way to install any of these components. I have attempted modifying my /etc/apt/sources.list file with these:
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
as shown here: Getting Microsoft Calibri font on Amazon EC2 ubuntu, but even after running sudo apt-get update I am still unsuccessful. How can I install the mscore fonts on ec2? My application needs them to function.
Eventually I figured this out. My solution was to enable the multiverse ppa's. Here is the script that I used.
#font installation -- required to properly display fonts used in
echo "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy-updates multiverse" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ saucy-updates multiverse" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
# preselect yes for ms EULA
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo apt-get install -y ttf-mscorefonts-installer
This works on EC2 ubuntu as of January 2015 and my local machine running ubuntu 14.04.
Adding multiverse is the key. This worked for me on Ubuntu 14.04:
sudo apt-add-repository multiverse && sudo apt-get update
sudo apt-get install -y ttf-mscorefonts-installer
I ran the following commands on linux mint 12 lisa:
1). sudo rm -rf /var/lib/apt/lists/* -vf
2). sudo apt-get update
3). sudo apt-get install git
I am getting the following error on running 3. That is, installing git:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
My /etc/apt/sources.list file contains the following content:
deb http://packages.linuxmint.com/ lisa main upstream import
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ oneiric partner
deb http://packages.medibuntu.org/ oneiric free non-free
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
# deb http://archive.getdeb.net/ubuntu oneiric-getdeb games
sudo apt-get upgrade shows the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
You need to install aptitude first.
sudo apt-get install aptitude
then install git using the command
sudo aptitude install git
I have a similar problem and solved it by running the update and upgrade at the same on one command line.
sudo apt-get update && sudo apt-get upgrade -y
after that I normally installed git with :
sudo apt-get install git
I have tried all but this works for me
In Terminal
$ software-properties-gtk
In Ubuntu, Software/Download_From_internet, enable all of the check marks
$ sudo apt-get install aptitude
$ sudo aptitude install git