Software centre not working due to "cant find an archive"
After an atempt to install an application probably called "unifi" directly from Ubiquiti/unifi website I can no longer install new software or do anything like that. Whether I use synaptic, software centre, update manager or apt-get in the terminal I get the following error:
E: The package unifi needs to be reinstalled, but I can't find an archive for it.
I have tried a few possible fixes with apt-get, like upgrade, update, install -f. Nothing works because every command related to installing software is not working due to the "installer" hanging at its unfinished business. I don"t mind not having "unifi" but cant find a way to let synaptic and the likes to move past it.
rin@rin-EX58-UD5 ~ $ ubuntu-
The program 'ubuntu-
sudo apt install update-manager-core
rin@rin-EX58-UD5 ~ $ cat /etc/dpkg/
cat: /etc/dpkg/
rin@rin-EX58-UD5 ~ $ dpkg --print-
i386
rin@rin-EX58-UD5 ~ $ sudo grep -R roxy /etc/apt/*
[sudo] password for rin:
rin@rin-EX58-UD5 ~ $ sudo grep -R roxy /etc/apt/*
rin@rin-EX58-UD5 ~ $ grep roxy /etc/environment
rin@rin-EX58-UD5 ~ $ echo $http_proxy
rin@rin-EX58-UD5 ~ $ echo $ftp_proxy
rin@rin-EX58-UD5 ~ $ grep roxy /etc/bash.bashrc
rin@rin-EX58-UD5 ~ $ grep roxy ~/.bashrc
rin@rin-EX58-UD5 ~ $
rin@rin-EX58-UD5 ~ $
rin@rin-EX58-UD5 ~ $ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
rin@rin-EX58-UD5 ~ $ sudo fuser -vvv /var/lib/dpkg/lock
rin@rin-EX58-UD5 ~ $ sudo fuser -vvv /var/cache/
rin@rin-EX58-UD5 ~ $ cat /etc/lsb-release
DISTRIB_
DISTRIB_RELEASE=18
DISTRIB_
DISTRIB_
rin@rin-EX58-UD5 ~ $ uname -a
Linux rin-EX58-UD5 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
rin@rin-EX58-UD5 ~ $ sudo rm /var/lib/
rin@rin-EX58-UD5 ~ $ sudo rm /var/cache/
rin@rin-EX58-UD5 ~ $ sudo rm /var/lib/dpkg/lock
rin@rin-EX58-UD5 ~ $ sudo cp -arf /var/lib/dpkg /var/lib/
rin@rin-EX58-UD5 ~ $ sudo mv /var/lib/
rin@rin-EX58-UD5 ~ $ sudo cp /var/lib/
rin@rin-EX58-UD5 ~ $ sudo mv /var/lib/
rin@rin-EX58-UD5 ~ $ sudo cp /var/lib/
cp: cannot stat '/var/lib/
rin@rin-EX58-UD5 ~ $ sudo rm -rf /var/lib/
rin@rin-EX58-UD5 ~ $ sudo rm -rf /var/lib/apt/lists
rin@rin-EX58-UD5 ~ $ sudo rm /var/cache/
rin@rin-EX58-UD5 ~ $ sudo mkdir /var/lib/apt/lists
rin@rin-EX58-UD5 ~ $ sudo mkdir /var/lib/
rin@rin-EX58-UD5 ~ $ LANG=C;sudo apt-get clean
rin@rin-EX58-UD5 ~ $ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
rin@rin-EX58-UD5 ~ $ sudo dpkg --configure -a
rin@rin-EX58-UD5 ~ $ sudo dpkg --clear-avail
rin@rin-EX58-UD5 ~ $ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package unifi needs to be reinstalled, but I can't find an archive for it.
rin@rin-EX58-UD5 ~ $ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package unifi needs to be reinstalled, but I can't find an archive for it.
rin@rin-EX58-UD5 ~ $ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package unifi needs to be reinstalled, but I can't find an archive for it.
rin@rin-EX58-UD5 ~ $ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Ign:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Fetched 29.6 MB in 24s (1226 kB/s)
Reading package lists... Done
rin@rin-EX58-UD5 ~ $ LANG=C;sudo apt-get update -o APT::Cache-
Ign:1 http://
Hit:2 http://
Hit:3 http://
Hit:5 http://
Hit:6 http://
Hit:7 http://
Hit:8 http://
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package unifi needs to be reinstalled, but I can't find an archive for it.
rin@rin-EX58-UD5 ~ $ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb http://
/etc/apt/
1 deb http://
2
3 deb http://
4 deb http://
5 deb http://
6
7 deb http://
8 deb http://
/etc/apt/
1 #deb cdrom:[Linux Mint 18 _Sarah_ - Release amd64 20160904]/ xenial contrib main non-free
rin@rin-EX58-UD5 ~ $ sudo dpkg --audit
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
unifi Ubiquiti UniFi server
rin@rin-EX58-UD5 ~ $ E: The package unifi needs to be reinstalled, but I can't find an archive for it.E: The package unifi needs to be reinstalled, but I can't find an archive for it.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: