Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt-get Failed to fetch error rename failed #2670

Closed
ahrensd opened this issue Nov 15, 2017 · 2 comments
Closed

apt-get Failed to fetch error rename failed #2670

ahrensd opened this issue Nov 15, 2017 · 2 comments

Comments

@ahrensd
Copy link

ahrensd commented Nov 15, 2017

Window ver:
Microsoft Windows [Version 10.0.15063]
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

can't install using apt-get
Packages are retrieved from repositories and stored in /var/cache/apt/archives/partial/ but that is as far as it gets
have include strace output of the below attempt
strace.zip

root@SDD01011:~# apt-get install gfortran
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gfortran-5 libgfortran-5-dev
Suggested packages:
  gfortran-multilib gfortran-doc gfortran-5-multilib gfortran-5-doc libgfortran3-dbg
The following NEW packages will be installed:
  gfortran gfortran-5 libgfortran-5-dev
0 upgraded, 3 newly installed, 0 to remove and 144 not upgraded.
Need to get 8,454 kB of archives.
After this operation, 25.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgfortran-5-dev amd64 5.4.0-6ubuntu1~16.04.5 [291 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 gfortran-5 amd64 5.4.0-6ubuntu1~16.04.5 [8,161 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 gfortran amd64 4:5.3.1-1ubuntu1 [1,288 B]
Fetched 8,454 kB in 5s (1,428 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-5/libgfortran-5-dev_5.4.0-6ubuntu1~16.04.5_amd64.deb  rename failed, No such file or directory (/var/cache/apt/archives/partial/libgfortran-5-dev_5.4.0-6ubuntu1~16.04.5_amd64.deb -> /var/cache/apt/archives/libgfortran-5-dev_5.4.0-6ubuntu1~16.04.5_amd64.deb).

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-5/gfortran-5_5.4.0-6ubuntu1~16.04.5_amd64.deb  rename failed, No such file or directory (/var/cache/apt/archives/partial/gfortran-5_5.4.0-6ubuntu1~16.04.5_amd64.deb -> /var/cache/apt/archives/gfortran-5_5.4.0-6ubuntu1~16.04.5_amd64.deb).

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/gfortran_5.3.1-1ubuntu1_amd64.deb  rename failed, No such file or directory (/var/cache/apt/archives/partial/gfortran_4%3a5.3.1-1ubuntu1_amd64.deb -> /var/cache/apt/archives/gfortran_4%3a5.3.1-1ubuntu1_amd64.deb).

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Looks like permissions problem

Have related issue, which I've updated with most current info
Trying to use apt-get, and fails update, upgrade and install build-essential
#2645

@PsykoAct
Copy link

PsykoAct commented Sep 30, 2018

Looks like Windows Defender problem
add directory exception in DEFENDER --> protection against virus --> parameters --> exceptions :
"c:\users<username>\AppData\Local\Packages\Kali-linux "

in kali you must do :

sudo su
cd /var/cache/apt/archives
chown -R root:root partial
mv partial old 
rm -rf old 
mkdir partial
apt-get update && apt-get install kali-linux-full

@therealkenc
Copy link
Collaborator

#640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants