I've just installed Ubuntu Server 16.04.3. During the installing I kept getting the message:     select and install software failed   I have no idea why. I'm not an expert so I had no idea on how to find any reason why that kept happening. Anyway, the OS seemed to have installed just fine so I figured to just install OpenSSH through command line.  First I tried: sudo apt install openssh-server. That resulted in the request of the CD. So I modified etc/apt/sources.list and commented out the cdrom entry as advised here:   Of course I did sudo apt-get update after. Which strangly enough returned Reading package lists... Done straight after.  After that I tried installing OpenSSH again, which resulted in:  Unable to locate package openssh-server.  So perhaps there was something wrong with my internet connection, but ifconfig gave me the network interface with the ipaddress I expected. So I think that's working fine.  Next I found some advise to run:  sudo rm var/lib/apt/lists/* and do sudo apt-get update after. Tried this, but no effect.  I have a feeling my installation simply has no repositories listed at all and therefor can't find any packages of course. Unfortunetely, if this is the case, I have no idea on how to fix it. Any advise would be welcome!
507
There are now errors when updating and I cannot install most software due to a corrupted  /etc/apt/sources.list   file. Is there a copy I can download to replace it?  The file would be for Ubuntu 12.04 (Final Beta) in the United States.
100553
I am unable to apt-get install any packages because E: Package '&lt;package name&gt;' has no installation candidate. Unlike the other similarly named questions, I am using debian and I have not been able to get any packages to work due to the same error. apt is still able to list repositories. I have updated, upgraded, rebooted, and repeated after my attempts at fixing sources.list, but nothing has worked.  For example,  $ sudo apt-get install nodejs Reading package lists... Done Building dependency tree        Reading state information... Done Package nodejs 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 'nodejs' has no installation candidate   Running $ find /etc/apt/ -path *.list | xargs cat produces:  #------------------------------------------------------------------------------# #                   OFFICIAL DEBIAN REPOS                     #------------------------------------------------------------------------------#  ###### Debian Main Repos deb http://ftp.us.debian.org/debian/ jessie main contrib non-free  deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free   ###### Debian Update Repos deb http://security.debian.org/ jessie/updates main contrib non-free  deb http://ftp.us.debian.org/debian/ jessie-proposed-updates main contrib non-free  deb-src http://security.debian.org/ jessie/updates main contrib non-free  deb-src http://ftp.us.debian.org/debian/ jessie-proposed-updates main contrib non-free    deb http://archive.raspberrypi.org/debian/ jessie main ui # Uncomment line below then 'apt-get update' to enable 'apt-get source' deb-src http://archive.raspberrypi.org/debian/ jessie main ui deb https://dev2day.de/pms/ jessie main deb http://dl.bintray.com/openhab/apt-repo stable main
24610
I am using 15.04.   So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great and then I decided it was a good idea to install more packages. I ran sudo apt-get install git-all. I'm looking at error codes now having to deal with upstart.  start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused No apport report written because the error message indicates its a followup error from a previous failure. dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   This is what happens when I even update/upgrade my system. At this point all I'm looking to do is be able to install software and update my current software. Is there any way I can potentially reverse this issue or at least correct it?   Edit: Thankfully this issue was solved only a day or two after it happened. The accepted answer worked perfectly and took care of my issue
7338
After I made a system upgrade (apt-get upgrade) on a debian box, I get an error everytime i tries to use apt-get. Example:  # apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up initscripts (2.88dsf-41+deb7u1) ... insserv: Service killprocs has to be enabled to start service single insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing initscripts (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  initscripts E: Sub-process /usr/bin/dpkg returned an error code (1)   I have tried to find a solution, but can't find anything that looks like this. First of all I have this packet which is "not fully installed or removed". But I can't find the command to locate it. Have tried:  dpkg -l | grep rc   But it list about 20 packets, so there must be a better way to find this packet.  To fix the packet system I have tried normal procedures, like:  apt-get clean &amp;&amp; sudo apt-get autoremove  apt-get -f install dpkg --configure -a   The clean command is good, but the install command will fail with as shown above.  In a desperate try, I tried to reinstall insserv (not sure it's the packet which is broken), but it fails the same way:  # apt-get install --reinstall insserv Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 1 not fully installed or removed. Need to get 63.8 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian/ wheezy/main insserv armel 1.14.0-5 [63.8 kB] Fetched 63.8 kB in 0s (85.5 kB/s) Setting up initscripts (2.88dsf-41+deb7u1) ... insserv: Service killprocs has to be enabled to start service single insserv: exiting now! update-rc.d: error: insserv rejected the script header dpkg: error processing initscripts (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  initscripts E: Sub-process /usr/bin/dpkg returned an error code (1)
17509
dam@ubuntu:~$ sudo apt-get update   W: Failed ....  adam@ubuntu:~$ sudo apt-get install fetch   Reading package lists... Done   Building dependency tree          Reading state information... Done   E: Unable to locate package fetch
236
I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.
20545
I tried installing VLC Player yesterday, and I got the Requires installation of untrusted packages error.  I searched for hours for a solution to this problem, and finally came upon a suggestion that said to change servers for downloading updates from.  I did this, and it gave me a 404 error when I clicked on "Check" in the Update Manager.  I tried switching my server back to the main one (and after that, several other ones), but I am now still getting a 404 error:   And the other error I get when downloading or updating:   Edit: Output of cat /etc/apt/sources.list:  deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted #Added by software-properties  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse universe #Added by software-properties  ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates restricted main multiverse universe #Added by software-properties  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ precise universe deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team.  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse #Added by software-properties  deb http://us.archive.ubuntu.com/ubuntu/ precise-security main restricted multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ precise-security restricted main multiverse universe #Added by software-properties deb http://us.archive.ubuntu.com/ubuntu/ precise-security universe  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu precise partner deb-src http://archive.canonical.com/ubuntu precise partner  ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software.
37441
The Software up-to-date Option automatically download the upgrade for nginx. but While installing it's giving me the following error:  Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   nginx 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/434 kB of archives. After this operation, 977 kB of additional disk space will be used. (Reading database ... 291344 files and directories currently installed.) Unpacking nginx (from .../nginx_1.4.7-1~precise_amd64.deb) ... ----------------------------------------------------------------------  Thanks for using nginx!  Please find the official documentation for nginx here: * http://nginx.org/en/docs/  Commercial subscriptions for nginx are available on: * http://nginx.com/products/  ---------------------------------------------------------------------- dpkg: error processing /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb (--unpack):  trying to overwrite '/etc/logrotate.d/nginx', which is also in package nginx-common 1.4.6-1+precise0 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/nginx_1.4.7-1~precise_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Actually that file /etc/logrotate.d/nginx does not exist in this folder.
26291
I recently installed Ubuntu Server edition 13.10 (Saucy Salamander). But I have run into a bit of problem. At the end of the installation, it asks about several extra packages whether you want them or not, like OpenSSH server and virtual machine host. Here's what I'm looking at:  Now, my problem is that I can't remember if I have checked the &quot;virtual machine host&quot; checkbox. How do I check if my server has the corresponding packages? What packages come with the virtual machine host?
65456
I'm using Ubuntu 18.04.2.  I cannot find Ubuntu Software (or Software center) in my dash. I have tried to install it with the following commands:  sudo apt-get update sudo apt-get upgrade   then   sudo apt-get install software-center*   After all the processes have run I get the following message:  $ sudo apt-get install software-center Reading package lists... Done Building dependency tree        Reading state information... Done Package software-center 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 'software-center' has no installation candidate   I think the problem might be related to my earlier attempt to install the MATE desktop environment. Since it failed I purged the installed packages. I assume that when I purged MATE packages I also deleted the software center and something that is needed its re-installation.
445
After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
81483
When I try to download some software from Ubuntu center or from Synaptic, I get package operation failed...    How to fix this?  edit:  I tried to install this game:    This is the details from the installation:  installArchives() failed: Selecting previously deselected package libbulletml0d2. (Reading database ... 100% (Reading database ... 239257 files and directories currently installed.) Unpacking libbulletml0d2 (from .../libbulletml0d2_0.0.6-4_i386.deb) ... Selecting previously deselected package tumiki-fighters-data. Unpacking tumiki-fighters-data (from .../tumiki-fighters-data_0.2.dfsg1-4_all.deb) ... Selecting previously deselected package tumiki-fighters. Unpacking tumiki-fighters (from .../tumiki-fighters_0.2.dfsg1-4_i386.deb) ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.UTF8.cache... Processing triggers for menu ... Processing triggers for man-db ... Processing triggers for python-support ... Setting up plymouth-theme-mib-ubuntu (0.5.0-2) ... update-alternatives: error: alternative path /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth doesn't exist. dpkg: error processing plymouth-theme-mib-ubuntu (--configure):  subprocess installed post-installation script returned error exit status 2 Setting up libbulletml0d2 (0.0.6-4) ... Setting up tumiki-fighters-data (0.2.dfsg1-4) ... Setting up tumiki-fighters (0.2.dfsg1-4) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for menu ... Errors were encountered while processing:  plymouth-theme-mib-ubuntu Setting up plymouth-theme-mib-ubuntu (0.5.0-2) ... update-alternatives: error: alternative path /lib/plymouth/themes/MIB-Ubuntu/MIB-Ubuntu.plymouth doesn't exist. dpkg: error processing plymouth-theme-mib-ubuntu (--configure):  subprocess installed post-installation script returned error exit status 2
44243
Since installing Ubuntu I have been unable to install new packages, it has even failed to update. Below is a dump of connection error I see when I tried to install Wine:  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unixodbc/odbcinst1debian2_2.3.1-4.1_amd64.deb  Connection failed [IP: 91.189.88.152 80]  E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-wqy-microhei/ttf-wqy-microhei_0.2.0-beta-2_all.deb  Connection failed [IP: 91.189.88.162 80]  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
73421
These instructions () doesn't work for Ubuntu Server iso. Doing dd if=ubuntuserver.iso of=/dev/sdb doesn't work either. In both situations, after the Ubuntu Server installer boots correctly, it says it hasn't found any CD drive and stops.  I've a USB stick where I've put the content of Ubuntu Server iso on it. I've configured Syslinux (with no APPEND parameter) pointing to vmlinuz+initrd present in "install" folder. The installer boots correctly but it hangs with an error saying it doesn't find the CD-ROM.  If I replace the vmlinuz+initrd with the "hd-media" ones (available ) I get another error: installer can't find any iso file anywhere (which is logical because I don't have any iso, I have the expanded tree on sdb1).  So I can't boot Ubuntu Server 16.04 from a USB stick.
51333
I'm trying to install nodejs and npm, however, it fails. This is my terminal:  sudo apt-get install nodejs npm 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: nodejs : Conflicts: npm E: Unable to correct problems, you have held broken packages.   What to do? I'm kinda lost :(
44688
I have installed Ubuntu 12.04 server , shows    E:unable to locate the package unzip   the above error is also shown, if I try to install packages also. Can any one help me out to get out from this error.
73986
How can I fix this? I can't update anything at all.   I've tried to switch to my best server in the options.  When I do sudo apt-get update, this is what I get:     W: Failed to fetch     Unable to find   expected entry 'universe/binary-1386/Packages' in Release file (Wrong   sources.list entry or malformed file) E: Some index files failed to   download. They have been ignored, or old ones used instead.*   When I do sudo apt-get upgrade, I get this:     Reading package lists... Done      Building dependency tree             Reading state information... Done      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   the contents of my source.list:     deb  quantal universe restricted main   ....update: when I update, it looks for 'universe/binary-1386/Packages'  however, if I go to: ubuntu.mirror.rafal.ca/ubuntu/dists/quantal/Release with Google Chrome, I see that the file is actually named "universe/binary-i386/Packages" (it's with an i, not a 1) . how can I fix this and make it expect the proper package?