ubuntu 错误无法更新、安装和升级以及错误 dpkg 或包

ubuntu 错误无法更新、安装和升级以及错误 dpkg 或包

我有一个关于 mysql 的问题。我尝试将 mysql 工作台与 mysql 数据库连接起来。我认为,我对 mysql 包做了一些错误。我想我删除了一些包。我试图找出与我类似的问题。但是,我尝试遵循每一个答案。结果仍然给我错误。

当我尝试使用 sudo apt-get install update 进行更新时,它们显示:

Reading package lists... Error!
W: The repository 'http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
E: Could not open file  - open (2: No such file or directory)
E: Problem opening 
E: The package lists or status file could not be parsed or opened.

我尝试重新安装mysql using sudo apt-get install mysql-serversudo apt-get install upgrade,他们显示?

E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

在修复之前我不会重启我的笔记本电脑。因为我曾经有过类似的经历,但是当我尝试重启时,GUI 或 GNOME 消失了。只需显示终端即可。

sudo -l

Matching Defaults entries for def on def-X450CA: 
     env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr‌​/bin\:/sbin\:/bin\:/‌​snap/bin 
User def may run the following commands on def-X450CA: 
     (ALL : ALL) ALL

我是这样说的:

sudo grep -iR "http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/u‌​buntu xenial" /etc/apt 

当我尝试更新时仍然出现同样的错误:

Reading package lists... Error!
W: The repository 'http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
E: Could not open file  - open (2: No such file or directory)
E: Problem opening 
E: The package lists or status file could not be parsed or opened.

结果如下:

grep -EiR "pulseaudio-equalizer" /etc/apt

/etc/apt/sources.list.d/alex-wv-ubuntu-pulseaudio-equalizer-ppa-xenial.list.save:deb http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu xenial main

/etc/apt/sources.list.d/alex-wv-ubuntu-pulseaudio-equalizer-ppa-xenial.list.save:# deb-src http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu xenial main

/etc/apt/sources.list.d/alex-wv-ubuntu-pulseaudio-equalizer-ppa-xenial.list:deb http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu xenial main

/etc/apt/sources.list.d/alex-wv-ubuntu-pulseaudio-equalizer-ppa-xenial.list:# deb-src http://ppa.launchpad.net/alex-wv/pulseaudio-equalizer-ppa/ubuntu xenial main

更新后,错误仍然存​​在:

E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
E: Could not open file  - open (2: No such file or directory)
E: Problem opening 
E: The package lists or status file could not be parsed or opened.


ls -l /var/lib/dpkg/
ls: cannot access '/var/lib/dpkg/': No such file or directory

我尝试了一下sudo dpkg -i dpkg*.deb,但出现错误:

dpkg: warning: files list file for package 'foomatic-db-compressed-ppds' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libopencv-highgui2.4v5:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libegl1-mesa:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'xserver-xorg-video-ati' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtotem-plparser18:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'rarian-compat' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'ogmtools' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'network-manager-pptp-gnome' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcap0.8:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fwupdate' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'gir1.2-totem-plparser-1.0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-ldap' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwayland-server0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'netbase' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'zlib1g-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-dejavu' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libuv1-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libunity-protocol-private0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxklavier16:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'qtdeclarative5-test-plugin:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-headers-generic' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liboxideqt-qmlplugin:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsnmp-base' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgksu2-0' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libjpeg8:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'usbmount' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-pyparsing' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python-talloc' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'gnome-session-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'adwaita-icon-theme' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'software-properties-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdbusmenu-qt2:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxcb-xkb1:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-core7:amd64' missing; assuming package has no files currently installed
(Reading database ... 1454 files and directories currently installed.)
Preparing to unpack dpkg_1.18.4ubuntu1.2_amd64.deb ...

and many more ....

相关内容