81
votes
sudo apt-get update couldn't create temporary file
You probably changed the file permissions on your /tmp folder, check with
ls -lad /tmp
The normal settings for /tmp are 1777, which ls shows as drwxrwxrwt. That is: wide open, except that only the ...
42
votes
apt-get update is failing in debian
According to the IRC channel for Debian, jessie-updates is now not supported:
Oldstable: Debian Jessie, jessie-updates and jessie-backports REMOVED 2019-03-24
Your solution is either to upgrade to ...
19
votes
apt-get update not working: Signing/ Verification errors
Solved by doing a docker system prune(?!). Is it the image that was in a bad state? Was it a problem caused by not having enough disk space?
Maybe something to consider if you're having the problem ...
15
votes
Sudo apt-get error: flAbsPath on /var/lib/dpkg/status failed - No such file or directory
I faced a similar issue recently with ubuntu 16.04.3 LTS, what worked for me is as following -
First you need to create an empty file, as following :-
adminuser@sandbox:~$ sudo touch /var/lib/dpkg/...
14
votes
Unable to remove package on Debian 7
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
I had this problem yesterday when the mariadb 10.1 server package failed to update and ...
12
votes
What is the step-by-step procedure to fix the "The following packages have unmet dependencies"?
I have no idea if it is still relevant for you to get help on this, but here is a summary of the things one could do to help in such situation
(from here at Appuals (appuals.com)) :
Method 1: Use the ...
9
votes
Sudo apt-get error: flAbsPath on /var/lib/dpkg/status failed - No such file or directory
Step 1:
cd /
Step 2:
cd var/lib/
Step 3:
mkdir dpkg
Step 4:
touch status
This worked for me. :)
7
votes
"Unable to locate package sudo" when i try to install sudo on new Debian
apt-get update
apt-get install sudo
7
votes
Accepted
How do I install Clang 4.0 on Ubuntu 14.04?
I believe you can do it this way:
sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main"
sudo apt-get update
sudo apt-get install clang-4.0 lldb-4.0
This is based ...
7
votes
Accepted
Failed to fetch error on apt-get update
Command apt-get update does not update the system, but merely the list of available packages. So it's not trying to fetch the package, but a list of packages from that URL. You need to check file /etc/...
7
votes
sudo apt-get update couldn't create temporary file
For me, I was using a Docker container and had mounted a directory to /tmp in the container, which was causing the conflict. I removed the mounted directory to /tmp and that allowed apt update to work....
6
votes
Accepted
Why and what of curl and then sudo apt-get?
curl is downloading a bash script and piping its contents to a new bash shell running as root with your current account's environment variables.
- is telling bash to read from stdin, which in this ...
5
votes
Ignore apt-get download errors
Since apt-rdepends doesn't provide a way to ignore packages, a wrapper is necessary to remove packages that can't be satisfied from the download list. A relatively portable way to automate this ...
5
votes
Accepted
"apt-get update" Fails? (Kali Linux with Virtual Box)
The solution is to change mirror in sources.list file. For some reason the default mirror is not working.
There are several mirrors of the Kali Linux repository server, all of which are spread over ...
5
votes
debian cannot uninstall dovecot
This uninstalls dovecot in debian:
systemctl stop dovecot
systemctl disable dovecot
apt-get purge dovecot-core
apt-get autoremove dovecot-core
5
votes
How can I apt-get dist-upgrade without removing packages?
This an embarrassing problem with Debian package managers. Anyone who upgraded heavily customized Ubuntu installations knows all too well that this missing functionality is required. Tired of this ...
5
votes
Accepted
"Unable to locate package sudo" when i try to install sudo on new Debian
Verify your sources here
Try using apt-get install sudo to get it.
You can configure users to use it with its config file:
vi /etc/sudoers
add a line:
user ALL=(ALL) ALL
5
votes
Cannot install ANY packages because of Python
Switch back to python 2.7
Use the command :
sudo update-alternatives --config python
If you get an error :
update-alternatives: error: no alternatives for python
Update your update-alternatives ...
5
votes
Accepted
How to copy all installed libraries to another Linux machine?
Managing a packages like rpm and libraries is very important in all the distribution of Linux. There are two ways to copy the packages from one System to another.
You can create File of current list ...
5
votes
Accepted
Why does 'apt' do not store downloaded packages anymore?
There's a dedicated setting for this which appeared in 2016 (that is including the Debian 9 stable release):
apt (1.2~exp1) experimental; urgency=medium
[ Automatic removal of debs after install ]
...
5
votes
apt-get update is failing in debian
The debian Team did not move jessie-updates to the archive repository (yet). But they already removed it from the regular repositories. So you currently have no access to jessie-updates. Therefore you ...
4
votes
Can I make apt-get always use --no-install-recommends?
Here is a one-liner to create /etc/apt/apt.conf.d/999norecommend file as per @esplor's answer:
apt-config dump | grep -we Recommends -e Suggests | sed s/1/0/ | sudo tee /etc/apt/apt.conf.d/...
4
votes
Ignore packages that are not currently installed when using "apt-get remove"
For Debian ≤ 9, it is possible to just use aptitude instead of apt-get:
sudo aptitude remove -y cups-dbg bogus-package
Aptitude prints warnings, but continues to remove your packages nevertheless:
...
4
votes
Kali Linux Rolling - apt-get upgrade: failed to fetch 404 not found
According to the Kali Linux Official Documentation, the sources.list file should contain the following line(s):
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package ...
4
votes
Accepted
Can I make apt-get install default to having the -y option?
One option is to alias it.
You can add this to your .bashrc file:
alias apt-get="apt-get -y"
Another option is to add below config to a file at /etc/apt/apt.conf.d/
for ex, a file called 90never-...
4
votes
Tunneling apt-get Through SSH Works... Mostly
Your approach doesn't work because of the HTTP protocol's Host: header.
Under normal circumstances, the HTTP client (in this case, apt-get) sends the header Host: ftp.debian.org, which lets the ...
4
votes
Accepted
apt-get "Unable to locate package" with a glob
It looks as though you have pantheon-debian-repos_0.4-0+pantheon+stretch+loki1_all.deb in your current directory, and pantheon-* is expanded to this by the shell.
What you need is:
sudo apt-get ...
4
votes
Accepted
Can not uninstall redis-server in Ubuntu?
See How to force remove when post-installation script always fail
on Ask Ubuntu. In short, try
sudo dpkg --purge --force-all {package name}
4
votes
apt-get update is failing in debian
While the other answers with deb combinations from this thread and others of the stackexchange network, including very similar ones, did not fix it for me, this one does :
deb http://archive.debian....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
apt-get × 397linux × 179
ubuntu × 149
debian × 124
apt × 37
package-management × 28
installation × 25
aptitude × 18
linux-mint × 17
dpkg × 16
dependencies × 14
packages × 12
python × 11
ubuntu-12.04 × 11
updates × 10
sudo × 10
docker × 9
upgrade × 8
kali-linux × 8
repository × 8
networking × 7
bash × 7
ssh × 6
raspberry-pi × 6
ubuntu-16.04 × 6