Hot answers tagged

7 votes

Can I restore apt-get sources to the default?

You have a couple of PPAs which appear to no longer exist. Both of these PPAs (from compiz and versable) are not default elementary software sources. You can remove software sources with the "...
user avatar
  • 9,734
7 votes

Why is my Elementary OS Not Updating via terminal / Apps are not updating from App Center?

To solve the problem "public key is not available: NO_PUBKEY A74F73EFFE70B91C", import the key: wget -q "http://packages.elementary.io/key.asc" -O- | sudo apt-key add -
user avatar
6 votes
Accepted

"apt-get upgrade" fails with errors (E: Encountered a section with no Package: header) and (W: Duplicate sources.list entry)

The lines that start with W: are warnings and not directly harmful. You somehow have the package source http://dl.google.com/linux/chrome/deb/stable/main (Google's repository for Chrome) listed twice. ...
user avatar
6 votes

apt-get and add-apt-repository not working

Install Software Properties sudo apt install software-properties-common
user avatar
  • 83
6 votes
Accepted

I extendedly removed apt package manager, how to fix?

0.4 loki You can download the package apt http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.2.15ubuntu0.2_amd64.deb and install via the command line sudo dpkg --install ~/Downloads/apt_1.2....
user avatar
  • 4,492
6 votes
Accepted

Why is packagekitd is running?

Packagekitd is responsible for handling package operations (installation, uninstallation, updating, etc...) for AppCenter. It runs in the background so it can check for updates and await commands to ...
user avatar
  • 1,419
6 votes
Accepted

Error while doing 'sudo apt update': no Release file

Right click on the Files icon in Plank dock, select New Window As Administrator, go to /etc/apt/sources.list.d/ folder and edit the various files there related to each of the errors by changing ...
user avatar
  • 2,268
4 votes
Accepted

Cannot install OpenJDK 8

openjdk8 isn't in the trusty repositories therefore you will have to add another repository: sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-8-jdk Source: ...
user avatar
4 votes
Accepted

sudo apt-get autoremove does not work

apt-get autoremove does not remove old kernels (by design). If you want to free up some space by removing old kernels you have to do this manually, but it's advised that the latest two kernel versions ...
user avatar
  • 3,510
4 votes
Accepted

How can I install indicator-session without pulling in extra packages?

As per these comments, using --no-install-recommends prevents the extra packages from installing.
user avatar
  • 1,918
4 votes
Accepted

Is it safe to use "apt-get autoremove"?

You should be able to safely run apt-get autoremove, but shouldn't usually need to. It's almost always a bad idea to run commands unless you explicitly understand what they do and how, including any ...
user avatar
  • 4,929
4 votes
Accepted

How can I run a Terminal command as "root"?

The main key word/phrase to find solution is are you root ? That means the command needs root privileges to run. From man page of sudo sudo allows a permitted user to execute a command as the ...
user avatar
  • 7,877
4 votes
Accepted

"could not find a distribution template for Ubuntu/n/a" error in elementary OS

The possible fix: sudo apt-get install gksu # If not installed sudo apt-get install libcanberra-gtk-module:i386 # If you get Failed to load module "canberra-gtk-module" error Now gksudo nano /etc/...
user avatar
  • 7,877
4 votes
Accepted

Unable to install skype on elementary OS

The quickest way to find such problem is to verify the enabled repositories in /etc/apt/sources.list file directly and don't trust software-properties-gtk GUI tool. trusty-security & trusty-...
user avatar
  • 445
4 votes

I've deleted a file I need in the /lib directory. I am struggling to recover that file

Run sudo apt-get install --reinstall libssl1.0.0 in the terminal to reinstall the libssl library on system I recommend before deleting a important file always rename it to YOURFILENAME.old or ...
user avatar
  • 2,733
4 votes

Why is my Elementary OS Not Updating via terminal / Apps are not updating from App Center?

Following what I've found about these topics, I think you either need to remove the conflicting package, or you need to overwrite it explicitly (I have no idea why its not an option that pops up while ...
user avatar
4 votes
Accepted

Can't install elementary-tweaks on Juno

Follow this steps Open a terminal, then write and execute (by pressing ENTER) this commands, one at a time: sudo apt install software-properties-common will ask your password sudo add-apt-...
user avatar
  • 1,942
3 votes

There's any plans on switching to a new package manager (like dnf or pacman)?

Ubuntu itself is apparently working on replacing Deb packages with Snappy apps, and GNOME is working on cross-distro sandboxed applications. I wouldn't be surprised if one of these projects made it ...
user avatar
  • 2,131
3 votes
Accepted

is it safe to leave packages held back?

Usually packages are held back because they require the installation of new packages or conflict and remove old packages. Typically you should just use the software updater app and it'll do the right ...
user avatar
  • 9,734
3 votes
Accepted

Adobe Flash Plugin Vulnerable

Fix your Sources If you are seeing the “The update information is outdated.” warning, you should use the Software Updater to check for updates, and install any available. That should get rid of that ...
user avatar
  • 4,929
3 votes
Accepted

How do I resolve GPG NO_PUBKEY errors?

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY> where <PUBKEY> is 1F3045A5DF7587C3 in this scenario.
user avatar
  • 4,929
3 votes

Error while doing 'sudo apt update': no Release file

I do not have enough rep to comment on answers. So here it goes. That oneliner does the trick for you or anyone in same situation find /etc/apt/sources.list.d/ -type f -exec sed -i.bak -e 's/loki/...
user avatar
3 votes
Accepted

apt update "does not have a Release file"

So, I was looking in the wrong path. The file I needed to edit was /etc/apt/sources.list. I just replaced loki to xenial and it worked.
user avatar
  • 161
3 votes

Juno sources - no release file

I fix this replacing juno for bionic on /etc/apt/sources.list.d/appcenter.list /etc/apt/sources.list.d/patches.list /etc/apt/sources.list.d/elementary.list to find this list of files you can use ...
user avatar
  • 135
2 votes

How to fix gpg: keyblock resource `/etc/apt/trusted.gpg.d/<key>.gpg': resource limit

One may try launchpad-getkeys. Delete all the contents in /etc/apt/trusted.gpg.d/. Add $ sudo add-apt-repository ppa:nilarimogard/webupd8 repository sudo apt-get update your local database Install $ ...
user avatar
  • 2,116
2 votes
Accepted

There's any plans on switching to a new package manager (like dnf or pacman)?

There are not any plans to switch away from Debian/apt at this time
user avatar
  • 9,734
2 votes
Accepted

Problems with broken packages and apt-related issues

The solution is after discussion in chat. Thanks to @Sneetsher for his assistance/help. The main error: dpkg: error: too-long line or missing newline in `/var/lib/dpkg/arch' The simple command ...
user avatar
  • 7,877

Only top scored, non community-wiki answers of a minimum length are eligible