LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-14-2014, 11:00 AM   #1
Suburban Errorist
LQ Newbie
 
Registered: May 2014
Posts: 26

Rep: Reputation: Disabled
Ubuntu Server 12.04: E: Unable to correct problems, you have held broken packages


So I have to install Ubuntu Server 12.04 as part of my industrial training, but I ran into some problems while trying to use apt-get.

Namely, whenever I try to install any new software, it will either result in this:

http://i.imgur.com/gFECQ8X.jpg

or

http://i.imgur.com/MzHzWUL.jpg

and I've edited the /etc/apt/sources.list in vi, so now it looks like this:

http://i.imgur.com/JOeOzXc.jpg
http://i.imgur.com/Z6jgAuK.jpg
http://i.imgur.com/pXfeRWX.jpg

(The changes I've made are for the last four entries.)

I've tried fixing it using apt-get update and upgrade will usually result in this:

http://i.imgur.com/sGcW3uB.jpg

And when I tried using aptitude, this will usually happen:

http://i.imgur.com/Utl2hU5.jpg

I've also tried:

Code:
sudo apt-get autoclean $$ apt-get clear cache
Which resulted in:

http://i.imgur.com/hT4ZBWI.jpg

So I think the apt-get component of this install is broken. Any advice on how to fix this?

Last edited by Suburban Errorist; 09-14-2014 at 08:35 PM.
 
Old 09-21-2014, 05:20 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
Common problem.. it's seems either you are purposefully 'holding' certain packages from being install (or their version being changed..)..or.

You need to update your repositories.. either normally (with the update command).. or, you need to add/delete the repositories, that are conflicting with your request.

You could also alter your request, if possible (obvious.. i no..).

Aptitude is awesome, but you have to baby it alot, to get what you want. Actually, sometimes apt-get is good to get something installed (when aptitude won't).. but be careful when it does.. because sometimes it breaks things... (so make sure your backups are cool..) and reboot a couple of times to ensure everything is grand.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you fix broken packages when Synaptic is unable to? TokyoJohn Ubuntu 4 04-30-2017 09:23 PM
[SOLVED] Unable to correct problems, you have held broken packages steez2002 Linux - Desktop 13 07-15-2016 12:31 PM
E: Unable to correct problems, you have held broken packages fargris Debian 9 01-05-2014 10:03 AM
[SOLVED] VLC - Unable to correct problems, you have held broken packages. marcelp1 Linux - Newbie 2 10-04-2013 03:22 AM
Ubuntu failed upgrade from 10.4 to 12.4 broken or held packages Kusho Linux - Newbie 8 10-02-2013 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration