安装 gnome-tweak-tool

安装 gnome-tweak-tool

我在终端中安装 gnome-tweak-tool 时遇到问题

sudo apt-get install gnome-tweak-tool
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gir1.2-gdesktopenums-3.0 gir1.2-gnomedesktop-3.0 gnome-settings-daemon gnome-shell-common iio-sensor-proxy mutter-common
The following NEW packages will be installed:
  gir1.2-gdesktopenums-3.0 gir1.2-gnomedesktop-3.0 gnome-settings-daemon gnome-shell-common gnome-tweak-tool iio-sensor-proxy mutter-common
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 633 kB/1,949 kB of archives.
After this operation, 13.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1http://archive.ubuntu.com/ubuntu xenial/universe amd64 gnome-shell-common all 3.18.4-0ubuntu3 [609 kB]
Err:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 iio-sensor-proxy amd64 1.1-1
  400  Bad URI [IP: 91.189.88.161 80]
Fetched 609 kB in 5s (111 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/i/iio-sensor-proxy/iio-sensor-proxy_1.1-1_amd64.deb  400  Bad URI [IP: 91.189.88.161 80]

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

我做了 --fix-missing 但没什么作用...

答案1

首先,我们需要启用 Universe 存储库。为此,通过应用程序菜单打开“软件和更新”。从存储库列表中标记所有 Universe 存储库。

软件和更新

单击“重新加载”以更新 Ubuntu。接下来,使用以下命令安装 Gnome Tweak Tool

 sudo apt install gnome-tweak-tool

输出:

$ sudo apt install gnome-tweak-tool
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
 gnome-tweak-tool
0 upgraded, 1 newly installed, 0 to remove and 435 not upgraded.
Need to get 205 kB of archives.
After this operation, 1,198 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu artful/universe amd64 gnome-tweak-tool all 3.26.2.1-1ubuntu1 [205 kB]
Fetched 205 kB in 1s (106 kB/s)            
Selecting previously unselected package gnome-tweak-tool.
(Reading database ... 145771 files and directories currently installed.)
Preparing to unpack .../gnome-tweak-tool_3.26.2.1-1ubuntu1_all.deb ...
Unpacking gnome-tweak-tool (3.26.2.1-1ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Setting up gnome-tweak-tool (3.26.2.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.17-1) ...

现在运行 Gnome Tweak Tool

答案2

如果您在全新安装后立即遇到此问题,可以使用单个命令解决

  1. CTRL++ALTT
  2. 键入此命令并输入您的密码。
sudo apt update && sudo apt upgrade && sudo apt-get install gnome-tweak-tool

答案3

我通过多种方法测试找到了解决方案

  1. 在终端

    sudo nano /etc/apt/sources.list
    
  2. 打开这个网站https://repogen.simplylinux.ch/ 生成你的来源列表

  3. 将其粘贴到终端
  4. 在终端中输入

    sudo apt-get update
    sudo apt-get upgrade 
    

不幸的是,在某些国家/地区,你无法更新或升级,除非你切换到其他来源

这就是我所弄清楚的。

我不知道它是否正确,但它对我有用。

答案4

gone-tweaks-tool重命名为gnome-tweaks

https://www.omgubuntu.co.uk/2017/07/gnome-tweak-tool-renamed-gnome-tweaks

要安装它,请运行: sudo apt update && sudo apt install gnome-tweaks

相关内容