AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[debian-installer](ubuntu)

Martin Hope
Johnsons
Asked: 2020-12-21 19:46:25 +0800 CST

在 Ubuntu 20.04 中打开 .deb 文件时,Ubuntu 软件中缺少升级按钮

  • 3

我当前的 F5 SSL VPN 版本是 7183(请参见此处),然后我下载了更新(版本 7184)debian 文件,当我打开 .deb 文件时,它会导致 Ubuntu 软件(此处),到目前为止一切正常,除了Update(或者Upgrade,你明白了)按钮丢失,只有Remove按钮保留在那里。

由于我将工作站升级到 Ubuntu 20.04,我无法再通过 .deb 文件进行升级。

这让事情变得很棘手,尤其是对于您在不使用 apt 的情况下安装的软件/应用程序。

我知道我们可以将源代码添加到 PPA,因此我们不再需要 .deb(包含在apt update其中apt upgrade)但是将它们中的每一个注册到 PPA 太痛苦了,我只想使用我从互联网上下载的这个 deb 文件他们得到更新的时间(如 dbeaver-ce)。

它是新的“功能”、预期的还是错误的(仅在 Ubuntu 20.04 上发现)?

如何以这种方式升级(不使用 PPA)?每次下载新的 deb 文件时使用新的 deb 文件删除并安装它们?

package-management software-center debian-installer 20.04
  • 1 个回答
  • 249 Views
Martin Hope
tikirin tukurun
Asked: 2020-10-18 22:12:48 +0800 CST

如何使用另一个 Debian 软件包安装 Docker?

  • 0

我在 Docker Registry 上有 2 个映像,所以我的要求是创建 Debian 包来提取这 2 个映像并在已安装的机器上运行。我的问题是如果我想使用 Docker 命令,Docker 应该安装在给定的机器上。所以Docker已经安装好了,然后我们就可以使用它了。否则,我必须在安装该 Debian 软件包时安装它。

我的DEBIAN/control文件看起来像这样

Package: bla-bla
Version: 1.0
Architecture: all
Priority: optional
Maintainer: Bla Bla <[email protected]>
Installed-Size: 327000
Depends: unzip, curl, sqlite3, libsqlite3-dev, xdg-utils, apt-transport-https, ca-certificates, software-properties-common
Homepage: https://www.example.com/
Section: Network, Databases, Web Servers, JavaScript, Python;
Description: bla bla bla

我不时添加Dockerand docker,但它没有用。所以我在文件中Depends添加了以下行,preinst

function check_whether_docker_installed() {
  service=docker
  is_running=$(ps aux | grep -v grep | grep -v "$0" | grep $service | wc -l | awk '{print $1}')

  if [ $is_running != "0" ]; then
    echo -e "\nservice $service is running"
  else
    initd=$(ls /etc/init.d/ | grep $service | wc -l | awk '{ print $1 }')

    if [ $initd = "1" ]; then
      startup=$(ls /etc/init.d/ | grep $service)
      echo -e "\nStarting Docker service"
      /etc/init.d/${startup} start
      echo "Docker service successfully started"
    else
      echo -e "\nService $service not yet installed, going to install it"
      sudo apt update
      curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
      sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
      sudo apt update
      apt-cache policy docker-ce
      sudo apt install -y docker-ce
      sudo chmod +x /var/run/docker.sock
      echo "Docker successfully installed, let's check it again"
      check_whether_docker_installed
    fi
  fi
}

function download_and_install_docker_compose() {
  which docker-compose

  if [ $? -eq 0 ]; then
    echo -e "\ndocker-compose is installed!"
  else
    echo -e "\ndocker-compose is not installed!"
    sudo curl -L "https://github.com/docker/compose/releases/download/1.27.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    echo "docker-compose is successfully installed, let's check it again"
    download_and_install_docker_compose
  fi
}

check_whether_docker_installed
download_and_install_docker_compose

sudo apt install -y docker-ce这条线无法运行。它给了我以下错误。

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
chmod: cannot access '/var/run/docker.sock': No such file or directory

是的,我知道会发生这种情况,因为我已经在运行sudo apt install my_package.deb安装我的包,所以不能sudo apt install在我的包中运行另一个命令。我该如何解决这个问题?这应该是一次性的过程。

debian bash deb debian-installer docker
  • 1 个回答
  • 169 Views
Martin Hope
Mike Fry
Asked: 2020-10-01 04:46:23 +0800 CST

任何使用 Landscape 管理 Ubuntu 桌面的人

  • 0

几年来,我一直在尝试使用 Landscape 来管理 Ubuntu 桌面。问题接连出现问题。最新的问题是 Landscape 将源列表引用留给自身。

示例输出。

cat /var/log/aaIT/aait-geue-cleanup_vpn/aait-geue-cleanup_vpn_200910105536.log 
INFO: Logging started for aait-geue-cleanup_vpn at 200910105536
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO: Can dpkg run?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO: Initiating aait-geue-cleanup_vpn Routine
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

aait-geue-cert-renew/unknown,now 2019.07.16 all [installed,automatic]

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 landscape-profile-standalone-certificate-renewal-process-20190716 : Depends: aait-geue-cert-renew (= 2019.07.16) but it is not going to be installed
 landscape-profile-standalone-aait-geue-employee-vpn-20200325 : Depends: aait-geue-employee-vpn (= 2020.03.25) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

landscape-profile-standalone-aait-geue-employee-vpn-20200325/now 1 all [installed,local]

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libdumbnet1 linux-headers-4.15.0-29 linux-headers-4.15.0-29-generic
  linux-image-4.15.0-29-generic linux-modules-4.15.0-29-generic
  linux-modules-extra-4.15.0-29-generic x11proto-dri2-dev x11proto-gl-dev
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  aait-geue-employee-vpn
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/22.2 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 194297 files and directories currently installed.)
Preparing to unpack .../aait-geue-employee-vpn_2020.03.25_all.deb ...
+ '[' '!' -f /var/log/aaIT/build/build3.log ']'
++ dmidecode -s system-manufacturer
+ virtual='Dell Inc.'
+ [[ Dell Inc. == \V\M\w\a\r\e\,\ \I\n\c\. ]]
+ SCRIPT_NAME=preinst
+ UPDATE_PACKAGE_NAME=aait-geue-employee-vpn-pre
+ BASE_INSTALL_DIR=/.deploy
+ UPDATE_HOME=/.deploy/auto_update/aait-geue-employee-vpn-pre
+ UPDATE_LOG_DIR=/var/log/aaIT/aait-geue-employee-vpn-pre
+ UPDATE_PACKAGE_STATUS=/var/log/aaIT/aait-geue-employee-vpn-pre/aait-geue-employee-vpn-pre.status
++ /bin/date +%y%m%d%H%M%S
+ UPDATE_ME_TIMESTAMP=200910105540
++ grep VERSION_ID /etc/os-release
++ awk -F '"' '{print $2}'
+ OS_RELEASE=18.04
++ mktemp -t tmp.XXXXXXXXXX
+ SCRATCH=/tmp/tmp.byjAAYTknb
+ start_log
+ echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ echo 'INFO: Initiating aait-geue-employee-vpn-pre Package Install Routine'
INFO: Initiating aait-geue-employee-vpn-pre Package Install Routine
+ echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ '[' '!' -d /var/log/aaIT/aait-geue-employee-vpn-pre ']'
+ chmod -R 755 /var/log/aaIT/aait-geue-employee-vpn-pre
+ UPDATE_LOG_FILE=/var/log/aaIT/aait-geue-employee-vpn-pre/aait-geue-employee-vpn-pre_200910105540.log
+ export UPDATE_LOG_FILE
+ exec
+ exec
++ tee -a /var/log/aaIT/aait-geue-employee-vpn-pre/aait-geue-employee-vpn-pre_200910105540.log
++ tee -a /var/log/aaIT/aait-geue-employee-vpn-pre/aait-geue-employee-vpn-pre_200910105540.log
INFO: Logging started for aait-geue-employee-vpn-pre at 200910105540
+ echo 'INFO: Logging started for aait-geue-employee-vpn-pre at 200910105540'
+ sleep 1
+ chmod 755 /var/log/aaIT/aait-geue-employee-vpn-pre/aait-geue-employee-vpn-pre_200910105540.log
+ execute_updates
+ echo 'Removing old packages'
+ rm -f /opt/cisco/anyconnect/profile/raeEmployee.xml
Removing old packages
+ rm -f /opt/cisco/anyconnect/profile/raePartner.xml
+ rm -f /etc/cron.hourly/vpn-cert-enroll
Unpacking aait-geue-employee-vpn (2020.03.25) ...
dpkg: error processing archive /var/cache/apt/archives/aait-geue-employee-vpn_2020.03.25_all.deb (--unpack):
 trying to overwrite '/usr/local/bin/ssl-cert-check.bash', which is also in package aait-geue-cert-renew 2019.07.16
Errors were encountered while processing:
 /var/cache/apt/archives/aait-geue-employee-vpn_2020.03.25_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@USFRYLNCNDJMK2G:/home/user# 

有没有人遇到过这个问题,你是如何解决的?

landscape debian-installer
  • 1 个回答
  • 207 Views
Martin Hope
Anon
Asked: 2019-07-17 20:44:00 +0800 CST

如何在 Ubuntu 上安装 Dissenter 浏览器?

  • 0

是在回购吗?

我尝试从他们的网站下载 debian 文件,但它给了我依赖问题 在此处输入图像描述

https://dissenter.com/#download

那么安装此浏览器的步骤是什么?

software-installation repository debian-installer
  • 1 个回答
  • 4481 Views
Martin Hope
ctd
Asked: 2019-04-15 07:49:17 +0800 CST

自定义安装 - ""在定义的 APT 源中找不到可安装的内核"

  • 1

我正在尝试使用https://help.ubuntu.com/community/InstallCDCustomization构建 18.04 的自定义版本,并安装了一些额外的软件包(用 'bionic' 代替 'xenial'),但是在 VM 上安装时我收到消息“在定义的 APT 源中找不到可安装的内核”。

查看系统日志,我看到四个警告:

warning: Unable to find main/debian-installer/binary-amd64/Packages in /cdrom/dists/bionic/Release
warning: Unable to find restricted/debian-installer/binary-amd64/Packages in /cdrom/dists/bionic/Release
warning: Unable to find extras/debian-installer/binary-amd64/Packages in /cdrom/dists/bionic/Release
warning: Unable to find extras/debian-installer/binary-amd64/Packages.gz in /cdrom/dists/bionic/Release

最后还有一条信息:

base-installer: info: found kernels ''

看起来内核包在 dists/bionic/main/binary-amd64/Packages.gz 中列出,并且该文件的校验和在 dists/bionic/Release 文件中是正确的。

还可能缺少什么?

编辑:查看基本安装程序源代码中的 library.sh 代码,最后一条消息表明 /tmp/available_kernels.txt 为空。当我退出安装 w/Alt-F2 时,情况确实如此。

编辑 2:进一步查看 library.sh,该文件由 kernel_update_list 函数填充,该函数从中获取内核候选列表

chroot /target apt-cache search "^(kernel|$KERNEL_NAME)-image"

当我在安装程序 shell 中运行它时,它什么也不返回。我可以看到许多其他软件包,包括 linux-headers-4.15.0-20-generic_4.15.0-20.21_amd64.deb,以及我尝试安装的额外软件包。不过,“apt-cache search linux-headers”不返回任何内容。

编辑 3:在 pool/main/l/linux-signed 中是 linux-image-4.15.0-20-generic_4.15.0-20.21_amd64.deb。标准 18.04 和我的自定义版本都有这个。但我没有看到 dists/ 目录下列出了该包的位置。

apt custom-distributions custom-installer debian-installer 18.04
  • 1 个回答
  • 636 Views
Martin Hope
Ricardo Cristian Ramirez
Asked: 2016-12-22 09:06:10 +0800 CST

安装 DVD 中的软件包在哪里?

  • 1

我已经下载了 Kubuntu 16.04 iso 映像,将其安装到系统并搜索 deb 文件,但只有 20 个 deb 包:dkms、fakeroot、grub-efi*...

ubuntu 安装程序如何安装软件包?换句话说,它们是如何以及在哪里存储的?例如,如果我挂载 Centos DVD,我可以看到所有 rpm 文件。

debian-installer
  • 2 个回答
  • 209 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve